diff --git a/README.md b/README.md index 06f9349..9a17452 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,58 @@ -#Miniapp to test GBS gradients # ------------------------------------------------------------------------------- -#To compile and run OpenMP with Offload implementation on izar with NVHPC # +# Miniapp to test GBS gradients with Makefile # +------------------------------------------------------------------------------- +#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 and run OpenMP with Offload implementation on izar with gcc +#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 and run OpenMP with Offload implementation on piz-daint with cce compiler +#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 and run CUDA C implementation on izar with gcc +#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 with CMAKE with gnu on izar # +------------------------------------------------------------------------------- +module load gcc cmake +mkdir build +cd build +cmake .. +make +------------------------------------------------------------------------------- +# To compile with CMAKE with nvhpc on izar # +------------------------------------------------------------------------------- +module load nvhpc/21.2-mpi cmake +mkdir build +cd build +cmake .. +make +------------------------------------------------------------------------------- +# To compile using CUDA with CMAKE on izar # +------------------------------------------------------------------------------- +module load gcc cuda cmake +mkdir build +cd build +cmake -DUSE_CUDA=1 .. +make