GeezerVison is showing github.com — Fixing a few other READMEs · amd/HPCTrainingExamples@4727db3
File treeExpand file treeCollapse file tree Open diff view settings Omniperf-OpenMP/Fortran/1_collapse Speedup_Examples/rzf_training/src
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: HIP/jacobi/CMakeLists.txt +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -42,20 +42,20 @@ set(JACOBI_HIP_SRCS HaloExchange.hip Input.hip JacobiIteration.hip JacobiMain.hi | 42 | 42 | add_executable(Jacobi_hip ${JACOBI_CXX_SRCS} ${JACOBI_HIP_SRCS} ) | 43 | 43 |
| 44 | 44 | set(CXXFLAGS "") | 45 | | -set(ROCMCC_FLAGS "${ROCMCC_FLAGS} -munsafe-fp-atomics -I$ENV{ROCM_PATH}/include/roctracer -I${MPI_INCLUDE_PATH}") | 46 | | -set(CUDACC_FLAGS "${CUDACC_FLAGS} ${MPI_INCLUDE_PATH}") | | 45 | +set(ROCMCC_FLAGS "${ROCMCC_FLAGS} -munsafe-fp-atomics") | | 46 | +set(CUDACC_FLAGS "${CUDACC_FLAGS}") | 47 | 47 |
| 48 | 48 | if (${GPU_RUNTIME} MATCHES "HIP") | 49 | | - set(HIPCC_FLAGS "${ROCMCC_FLAGS} -D__HIP_PLATFORM_AMD__") | 50 | | - set(HIPCC_FLAGS "${ROCMCC_FLAGS} -D__HIP_PLATFORM_HCC__") | | 49 | + set(HIPCC_FLAGS "${ROCMCC_FLAGS} -D__HIP_PLATFORM_AMD__ -D__HIP_PLATFORM_HCC__") | 51 | 50 | set(HIPCC_LIBS "-lroctracer64 -lroctx64") | 52 | 51 | else (${GPU_RUNTIME} MATCHES "HIP") | 53 | 52 | set(HIPCC_FLAGS "${CUDACC_FLAGS} -D__HIP_PLATFORM_NVIDIA__") | 54 | 53 | set(HIPCC_LIBS "") | 55 | 54 | endif (${GPU_RUNTIME} MATCHES "HIP") | 56 | 55 |
| 57 | 56 | set_source_files_properties(${JACOBI_HIP_SRCS} PROPERTIES LANGUAGE ${GPU_RUNTIME}) | 58 | | -set_source_files_properties(${JACOBI_HIP_SRCS} PROPERTIES COMPILE_FLAGS ${HIPCC_FLAGS}) | | 57 | +set_source_files_properties(${JACOBI_HIP_SRCS} PROPERTIES COMPILE_FLAGS "${HIPCC_FLAGS}") | | 58 | +target_include_directories(Jacobi_hip PRIVATE $ENV{ROCM_PATH}/include/roctracer ${MPI_INCLUDE_PATH}) | 59 | 59 | target_link_libraries(Jacobi_hip PRIVATE ${MPI_LIBRARIES} ${HIPCC_LIBS}) | 60 | 60 |
| 61 | 61 | install(TARGETS Jacobi_hip) |
Collapse file Copy file name to clipboardExpand all lines: HIPStdPar/CXX/README.md +5-1Lines changed: 5 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -235,10 +235,14 @@ All examples require the user to specify the path to the StdPar header in the Ma | 235 | 235 |
| 236 | 236 | ``` | 237 | 237 | module load rocm | 238 | | -export STDPAR_PATH=${ROCM_PATH}/include/thrust/system/hip/hipstdpar | | 238 | +module load amdclang | 239 | 239 | export HSA_XNACK=1 | 240 | 240 | ``` | 241 | 241 |
| | 242 | +If the `amdclang` module is not available, then do: | | 243 | +``` | | 244 | +export STDPAR_PATH=${ROCM_PATH}/include/thrust/system/hip/hipstdpar | | 245 | +``` | 242 | 246 | Note HIPSTDPAR assumes the device is HMM enabled and setting `HSA_XNACK=1` to one is required. In devices where HMM is not enabled, the additional compilation flag `--hipstdpar-interpose-alloc` needs to be included. This will instruct the compiler to replace all dynamic memory allocations with compatible `hipManagedMemory` allocations. | 243 | 247 |
| 244 | 248 |
| |
Collapse file Copy file name to clipboardExpand all lines: Omniperf-OpenMP/Fortran/1_collapse/README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ Note: Client-side installation instructions are available in the official omnipe | 3 | 3 |
| 4 | 4 | This example was tested on MI300A. | 5 | 5 | ``` | 6 | | -module load amdflang-new | | 6 | +module load amdclang | 7 | 7 | module load rocm/6.2.1 | 8 | 8 | module load omniperf/6.2.1 | 9 | 9 | export HSA_XNACK=1 | |
Collapse file Copy file name to clipboardExpand all lines: Python/hip-python/README.md +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ hipDeviceGetAttribute. | 27 | 27 | ## Obtaining Device Properties | 28 | 28 |
| 29 | 29 | We'll take a look at the higGetDeviceProperties function first. Copy the following | 30 | | -code into a file named `hipGetDevicePropeties_example.py` or pull the example down | | 30 | +code into a file named `hipGetDeviceProperties_example.py` or pull the example down | 31 | 31 | with | 32 | 32 |
| 33 | 33 | ``` | @@ -481,7 +481,7 @@ Running this example: | 481 | 481 |
| 482 | 482 | ``` | 483 | 483 | module load rocm hip-python | 484 | | -python3 rcc_example.py | | 484 | +python3 rccl_example.py | 485 | 485 | ``` | 486 | 486 |
| 487 | 487 | ## Unified Shared Memory with RCCL using HIP-Python | @@ -550,7 +550,7 @@ Running this version requires setting `HSA_XNACK` to one as in the previous unif | 550 | 550 | ``` | 551 | 551 | module load rocm hip-python | 552 | 552 | export HSA_XNACK=1 | 553 | | -python3 rcc_USM_example.py | | 553 | +python3 rccl_USM_example.py | 554 | 554 | ``` | 555 | 555 |
| 556 | 556 | ## Cython example | @@ -856,7 +856,7 @@ Run this example with: | 856 | 856 |
| 857 | 857 | ``` | 858 | 858 | module load rocm hip-python | 859 | | -python3 kernel_with_args.py | | 859 | +python3 kernel_with_arguments.py | 860 | 860 | ``` | 861 | 861 |
| 862 | 862 |
| |
Collapse file Copy file name to clipboard File renamed without changes. Collapse file Copy file name to clipboardExpand all lines: Speedup_Examples/rzf_training/src/Makefile +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -ROCMVER=5.7.0 | | 1 | +ROCM_PATH ?= /opt/rocm | 2 | 2 | BASIC = -O0 | 3 | 3 | OPT = -O3 -mtune=native -march=native | 4 | 4 | OMP = -fopenmp | @@ -36,10 +36,10 @@ rzf_fortran_openmp.x: rzf_openmp.f | 36 | 36 |
| 37 | 37 |
| 38 | 38 | rzf_ROCM.x: rzf_ROCM.hip | 39 | | - hipcc -O3 -march=native -mtune=native -I/opt/rocm-${ROCMVER}/rocprim rzf_ROCM.hip -o rzf_ROCM.x -lm | | 39 | + hipcc -O3 -march=native -mtune=native -I${ROCM_PATH}/rocprim rzf_ROCM.hip -o rzf_ROCM.x -lm | 40 | 40 |
| 41 | 41 | rzf_ROCM_shard.x: rzf_ROCM_shard.hip | 42 | | - hipcc -O3 -march=native -mtune=native -I/opt/rocm-${ROCMVER}/rocprim rzf_ROCM_shard.hip -o rzf_ROCM_shard.x -lm | | 42 | + hipcc -O3 -march=native -mtune=native -I${ROCM_PATH}/rocprim rzf_ROCM_shard.hip -o rzf_ROCM_shard.x -lm | 43 | 43 |
| 44 | 44 |
| 45 | 45 |
| |
Collapse file Copy file name to clipboardExpand all lines: rocprof-tracedecoder/README.md +5-6Lines changed: 5 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,11 +11,11 @@ into a separate directory and then prepend those paths before the ROCm paths. | 11 | 11 |
| 12 | 12 | ## Setting up environment | 13 | 13 |
| 14 | | -If the ROCProf trace decoder is installed with a module, load the appropriate module. With the ROCm | 15 | | -7.0 version, the ROCProf trace decoder will be integrated into ROCm software. | | 14 | +With ROCm 7.0 and later, the ROCProf trace decoder is integrated into the ROCm software stack. | | 15 | +Load the ROCm module to access `rocprofv3`: | 16 | 16 |
| 17 | 17 | ``` | 18 | | -module load rocprofiler-sdk | | 18 | +module load rocm | 19 | 19 | ``` | 20 | 20 |
| 21 | 21 | All of these exercises are from the AMD HPC Training Examples which can be retrieved with the following: | @@ -124,15 +124,14 @@ cd HPCTrainingExamples/rocprof-tracedecoder | 124 | 124 |
| 125 | 125 | ``` | 126 | 126 | make | 127 | | -rocprofv3 --att -att-perfcounters "SQ_INSTS_LDS SQ_INSTS_VMEM SQ_INSTS_VMEM_WR SQ_INSTS_VMEM_RD" -d tracedecoder_dgemm_library -- ./dgemm` | 128 | | -
| | 127 | +rocprofv3 --att -att-perfcounters "SQ_INSTS_LDS SQ_INSTS_VMEM SQ_INSTS_VMEM_WR SQ_INSTS_VMEM_RD" -d tracedecoder_dgemm_library -- ./dgemm | 129 | 128 | ``` | 130 | 129 |
| 131 | 130 | Transfer files in `tracedecoder_dgemm_library` to your local system | 132 | 131 |
| 133 | 132 | Cleaning up afterwards | 134 | 133 |
| 135 | | -`` | | 134 | +``` | 136 | 135 | make clean | 137 | 136 | rm -rf tracedecoder_dgemm_library | 138 | 137 | ``` | |
|