GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixing a few other READMEs · amd/HPCTrainingExamples@4727db3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • HIPStdPar/CXX
    • README.md
  • HIP/jacobi
    • CMakeLists.txt
  • Omniperf-OpenMP/Fortran/1_collapse
    • README.md
  • Python/hip-python
    • README.md
    • hipGetDeviceProperties_example.py
  • Speedup_Examples/rzf_training/src
    • Makefile
  • rocprof-tracedecoder
    • README.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎HIP/jacobi/CMakeLists.txt‎

Copy file name to clipboardExpand all lines: HIP/jacobi/CMakeLists.txt
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ set(JACOBI_HIP_SRCS HaloExchange.hip Input.hip JacobiIteration.hip JacobiMain.hi
4242
add_executable(Jacobi_hip ${JACOBI_CXX_SRCS} ${JACOBI_HIP_SRCS} )
4343

4444
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}")
4747

4848
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__")
5150
set(HIPCC_LIBS "-lroctracer64 -lroctx64")
5251
else (${GPU_RUNTIME} MATCHES "HIP")
5352
set(HIPCC_FLAGS "${CUDACC_FLAGS} -D__HIP_PLATFORM_NVIDIA__")
5453
set(HIPCC_LIBS "")
5554
endif (${GPU_RUNTIME} MATCHES "HIP")
5655

5756
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})
5959
target_link_libraries(Jacobi_hip PRIVATE ${MPI_LIBRARIES} ${HIPCC_LIBS})
6060

6161
install(TARGETS Jacobi_hip)
Collapse file

‎HIPStdPar/CXX/README.md‎

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 numberDiff line numberDiff line change
@@ -235,10 +235,14 @@ All examples require the user to specify the path to the StdPar header in the Ma
235235

236236
```
237237
module load rocm
238-
export STDPAR_PATH=${ROCM_PATH}/include/thrust/system/hip/hipstdpar
238+
module load amdclang
239239
export HSA_XNACK=1
240240
```
241241

242+
If the `amdclang` module is not available, then do:
243+
```
244+
export STDPAR_PATH=${ROCM_PATH}/include/thrust/system/hip/hipstdpar
245+
```
242246
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.
243247

244248

Collapse file

‎Omniperf-OpenMP/Fortran/1_collapse/README.md‎

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 numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Note: Client-side installation instructions are available in the official omnipe
33

44
This example was tested on MI300A.
55
```
6-
module load amdflang-new
6+
module load amdclang
77
module load rocm/6.2.1
88
module load omniperf/6.2.1
99
export HSA_XNACK=1
Collapse file

‎Python/hip-python/README.md‎

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 numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ hipDeviceGetAttribute.
2727
## Obtaining Device Properties
2828

2929
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
3131
with
3232

3333
```
@@ -481,7 +481,7 @@ Running this example:
481481

482482
```
483483
module load rocm hip-python
484-
python3 rcc_example.py
484+
python3 rccl_example.py
485485
```
486486

487487
## 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
550550
```
551551
module load rocm hip-python
552552
export HSA_XNACK=1
553-
python3 rcc_USM_example.py
553+
python3 rccl_USM_example.py
554554
```
555555

556556
## Cython example
@@ -856,7 +856,7 @@ Run this example with:
856856

857857
```
858858
module load rocm hip-python
859-
python3 kernel_with_args.py
859+
python3 kernel_with_arguments.py
860860
```
861861

862862

Collapse file

‎…-python/hipGetDevicePropeties_example.py‎ ‎…python/hipGetDeviceProperties_example.py‎Python/hip-python/hipGetDevicePropeties_example.py renamed to Python/hip-python/hipGetDeviceProperties_example.py Python/hip-python/hipGetDevicePropeties_example.py renamed to Python/hip-python/hipGetDeviceProperties_example.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎Speedup_Examples/rzf_training/src/Makefile‎

Copy file name to clipboardExpand all lines: Speedup_Examples/rzf_training/src/Makefile
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ROCMVER=5.7.0
1+
ROCM_PATH ?= /opt/rocm
22
BASIC = -O0
33
OPT = -O3 -mtune=native -march=native
44
OMP = -fopenmp
@@ -36,10 +36,10 @@ rzf_fortran_openmp.x: rzf_openmp.f
3636

3737

3838
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
4040

4141
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
4343

4444

4545

Collapse file

‎rocprof-tracedecoder/README.md‎

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 numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ into a separate directory and then prepend those paths before the ROCm paths.
1111

1212
## Setting up environment
1313

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`:
1616

1717
```
18-
module load rocprofiler-sdk
18+
module load rocm
1919
```
2020

2121
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
124124

125125
```
126126
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
129128
```
130129

131130
Transfer files in `tracedecoder_dgemm_library` to your local system
132131

133132
Cleaning up afterwards
134133

135-
``
134+
```
136135
make clean
137136
rm -rf tracedecoder_dgemm_library
138137
```

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.