-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add openmpi compiler wrappers to requirements
- Loading branch information
1 parent
1306324
commit d79ef38
Showing
4 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ | |
### using nvcc compiler: | ||
### nvhpc > 22.3 | ||
### with cmake 3.21.1 | ||
### using appropriate openmpi library for chosen compiler | ||
### (e.g. via Levante compiler wrappers) | ||
### ----------------------------- ### | ||
|
||
### -- CLEO PySD Requirements --- ### | ||
|
@@ -44,26 +46,27 @@ e.g. spack find cmake | |
-DKokkos_ENABLE_CUDA_LAMBDA=ON | ||
-DKokkos_ENABLE_CUDA_UVM=ON (depreciated) | ||
|
||
OPENMP ENABLED build: | ||
module load gcc | ||
CXX=g++ CC=gcc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON | ||
|
||
SERIAL ONLY build (no MPI): | ||
module load gcc/11.2.0-gcc-11.2.0 | ||
CXX=g++ CC=gcc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
CXX=nvc++ CC=nvcc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
or perhaps: | ||
CXX=g++-13 CC=gcc-13 cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON | ||
CXX=g++-13 CC=gcc-13 cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
|
||
GPU (CUDA) ENABLED build: | ||
module load gcc | ||
module load nvhpc | ||
spack load [email protected]%gcc | ||
CXX=nvc++ CC=nvcc cmake -S ./ -B ./build -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ENABLE_CUDA_UVM=ON | ||
MPI + SERIAL ONLY build | ||
module load gcc/11.2.0-gcc-11.2.0 openmpi/4.1.2-gcc-11.2.0 | ||
CXX=mpi++ CC=mpicc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
|
||
SERIAL ONLY build: | ||
module load gcc | ||
CXX=g++ CC=gcc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
CXX=nvc++ CC=nvcc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON | ||
MPI + OPENMP ENABLED build: | ||
module load gcc/11.2.0-gcc-11.2.0 openmpi/4.1.2-gcc-11.2.0 | ||
CXX=mpi++ CC=mpicc cmake -S ./ -B ./build -DKokkos_ARCH_NATIVE=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON | ||
|
||
MPI + GPU (CUDA) ENABLED build: | ||
module load gcc/11.2.0-gcc-11.2.0 nvhpc/23.9-gcc-11.2.0 openmpi/4.1.6-nvhpc-23.9 | ||
spack load [email protected]%gcc | ||
CXX=mpic++ CC=mpicc cmake -S ./ -B ./build -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ENABLE_CUDA_UVM=ON | ||
|
||
CUDA and OPENMP build: | ||
module load gcc | ||
module load nvhpc | ||
MPI + CUDA and OPENMP build: | ||
module load gcc/11.2.0-gcc-11.2.0 nvhpc/23.9-gcc-11.2.0 openmpi/4.1.6-nvhpc-23.9 | ||
spack load [email protected]%gcc | ||
CXX=nvc++ CC=nvcc cmake -S ./ -B ./build -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ENABLE_CUDA_UVM=ON | ||
CXX=mpic++ CC=mpicc cmake -S ./ -B ./build -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ENABLE_CUDA_UVM=ON |