Miniapp for testing GBS gradients on GPU
Diffusion miniapp_gbs_gradients (master)
Recent Commits
Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
f198ada7c74f | peybernes | clean README | Jun 22 2022 | ||||
eee35bfe5ff7 | peybernes | clean README | Jun 22 2022 | ||||
747c79092045 | peybernes | clean README | Jun 22 2022 | ||||
1449527f0351 | peybernes | clean README | Jun 22 2022 | ||||
8b6ba1c61380 | peybernes | optimize data transfer | Dec 29 2021 | ||||
2c300982d4c4 | peybernes | update README for izar | Dec 26 2021 | ||||
64fcbec49fe1 | peybernes | Compile OpenACC | Dec 26 2021 | ||||
d69826ac8c57 | peybernes | Handle openacc diretives on cray | Dec 26 2021 | ||||
e320f955226b | peybernes | update cmake for marconi100 with xl compiler | Dec 26 2021 | ||||
f3c12d243e3c | peybernes | forgot .cmake | Dec 26 2021 | ||||
7bb40b6ccb41 | peybernes | Update cmake for piz-daint | Dec 26 2021 | ||||
72487968ed1a | peybernes | update readme for cmake | Dec 26 2021 | ||||
f16fd9b8f371 | peybernes | add cmake | Dec 26 2021 | ||||
9c8248caee6d | peybernes | Fix compile bug | Dec 26 2021 | ||||
f03004bad474 | peybernes | Add cuda version | Dec 26 2021 |
README.md
README.md
Miniapp computing Gradients from GBS
- To compile with Makefile and run OpenMP with Offload implementation on izar with NVHPC -------------------------------------------------------------------------------
module load nvhpc/21.2-mpi make srun -p debug --gres=gpu:1 ./gbs_gradients
- To compile with Makefile and run OpenMP with Offload implementation on izar with gcc -------------------------------------------------------------------------------
module load gcc #modify FLAGS and FC in Makefile uncommenting the corresponding lines make srun -p debug --gres=gpu:1 ./gbs_gradients
- To compile with Makefile and run OpenMP with Offload implementation on piz-daint with cce compiler -------------------------------------------------------------------------------
module load daint-gpu module load craype-accel-nvidia60 module load cudatoolkit export CRAY_ACCEL_TARGET=nvidia60 git checkout compile_without_openacc # branch with acc pragmas commented #modify FLAGS and FC in Makefile uncommenting the corresponding lines make srun --gres=gpu:1 -c 12 -N 1 -n 1 --time=00:15:00 --account=g26 -C gpu ./gbs_gradients
- To compile with Makefile and run CUDA C implementation on izar with gcc -------------------------------------------------------------------------------
module load gcc nvhpc/21.2-mpi #modify FLAGS and FC in Makefile uncommenting the corresponding lines make gbs_gradients_cuda srun -p debug --gres=gpu:1 ./gbs_gradients
- To compile OpenmP with CMAKE with gnu on izar -------------------------------------------------------------------------------
module load gcc cmake mkdir build cd build cmake .. make
- To compile OpenMP with CMAKE with nvhpc on izar -------------------------------------------------------------------------------
module load nvhpc/21.2-mpi cmake mkdir build cd build cmake .. make
- To compile OpenACC with CMAKE with nvhpc on izar -------------------------------------------------------------------------------
module load nvhpc/21.2-mpi cmake mkdir build cd build cmake -DUSE_ACC=1 .. make
- To compile using CUDA with CMAKE on izar -------------------------------------------------------------------------------
module load gcc cuda cmake mkdir build cd build cmake -DUSE_CUDA=1 .. make
- To compile OpenMP with CMAKE with CCE on piz-daint -------------------------------------------------------------------------------
module load daint-gpu module load craype-accel-nvidia60 module load cudatoolkit export CRAY_ACCEL_TARGET=nvidia60 module load CMake mkdir build cd build cmake .. make
- To compile OpenACC with CMAKE with CCE on piz-daint -------------------------------------------------------------------------------
module swap PrgEnv-cray PrgEnv-pgi module unload cray-libsci_acc module load cudatoolkit module load craype-accel-nvidia60 module load daint-gpu module load CMake mkdir build cd build cmake -DUSE_ACC=1 .. make
- To compile using CUDA with CMAKE with CCE on piz-daint -------------------------------------------------------------------------------
module load daint-gpu module load craype-accel-nvidia60 module load cudatoolkit export CRAY_ACCEL_TARGET=nvidia60 mkdir build cd build cmake -DUSE_CUDA=1 .. make
- To compile with CMAKE with xlf compiler on Marconi100 -------------------------------------------------------------------------------
# xlf compiler doesn't support Fortran "norm2" function (Fortran 2008 standard) # So have to comment lines mentionning norm2 (just useful for output) in test_gbs_gradients.F90 module load xl cmake cuda mkdir build cd build cmake -DCMAKE_Fortran_COMPILER=xlf2003_r -DCMAKE_VERBOSE_MAKEFILE=ON .. make
c4science · Help