diff --git a/Makefile b/Makefile index 7ca2361..77b9d40 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ EXEC=gbs_gradients # Excutable name # on izar #FC=gfortran # GNU Fortran compiler FC=nvfortran # NVHPC Fortran compiler # #FLAGS= -O3 -fopenmp -foffload=-lgfortran -lm -foffload="-lm" # options for OpenMP with GNU -#FLAGS= -O3 -static-nvidia -mp=gpu -gpu=cc70 # options for openMP with NVHPC -FLAGS=-acc -gpu=cc70 # options for openACC with NVHPC +FLAGS= -O3 -static-nvidia -mp=gpu -gpu=cc70 # options for openMP with NVHPC +#FLAGS=-acc -gpu=cc70 # options for openACC with NVHPC # all: $(EXEC) gbs_gradients: test_gbs_gradients.F90 gradients_mod.F90 space_grid_mod.F90 prec_const_mod.F90 $(FC) $(FLAGS) prec_const_mod.F90 space_grid_mod.F90 gradients_mod.F90 test_gbs_gradients.F90 -o $(EXEC) clean: rm -f $(EXEC) *.mod *.o *~ diff --git a/README.md b/README.md new file mode 100644 index 0000000..eb1df1b --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Miniapp to test GBS gradients +######################################################################################## +# on izar with NVHPC +######################################################################################## +module load nvhpc/21.2-mpi + +# to compile and run OpenMP with Offload implementation: +make +srun -p debug --gres=gpu:1 ./gbs_gradients + +######################################################################################## +# on izar with gcc () +######################################################################################## +module load gcc + +# to compile and run OpenMP with Offload implementation: +# modify FLAGS and FC in Makefile +make +srun -p debug --gres=gpu:1 ./gbs_gradients +