Skip to content

Commit 0d2c46a

Browse files
authored
Update build instructions for affinity GPU backend
1 parent ad973ab commit 0d2c46a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/running/slurm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ $ uenv start prgenv-gnu/24.11:v2 --view=default #(1)
128128
$ git clone https://github.com/bcumming/affinity.git
129129
$ cd affinity; mkdir build; cd build;
130130
$ CC=gcc CXX=g++ cmake .. #(2)
131-
$ CC=gcc CXX=g++ cmake .. -DAFFINITY_GPU=cuda #(3)
132-
$ CC=gcc CXX=g++ cmake .. -DAFFINITY_GPU=rocm #(4)
131+
$ CC=gcc CXX=g++ cmake .. -DAFFINITY_GPU_BACKEND=cuda #(3)
132+
$ CC=gcc CXX=g++ cmake .. -DAFFINITY_GPU_BACKEND=rocm #(4)
133133
```
134134

135135
1. Affinity can be built using [`prgenv-gnu`][ref-uenv-prgenv-gnu] on all clusters.
@@ -144,8 +144,8 @@ The build generates the following executables:
144144

145145
* `affinity.omp`: tests thread affinity with no MPI (always built).
146146
* `affinity.mpi`: tests thread affinity with MPI (built by default).
147-
* `affinity.cuda`: tests thread and GPU affinity with MPI (built with `-DAFFINITY_GPU=cuda`).
148-
* `affinity.rocm`: tests thread and GPU affinity with MPI (built with `-DAFFINITY_GPU=rocm`).
147+
* `affinity.cuda`: tests thread and GPU affinity with MPI (built with `-DAFFINITY_GPU_BACKEND=cuda`).
148+
* `affinity.rocm`: tests thread and GPU affinity with MPI (built with `-DAFFINITY_GPU_BACKEND=rocm`).
149149

150150
??? example "Testing CPU affinity"
151151
Test CPU affinity (this can be used on both CPU and GPU enabled nodes).

0 commit comments

Comments
 (0)