-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecute_CASPER.template
43 lines (36 loc) · 1.4 KB
/
execute_CASPER.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash -l
#SBATCH -J MPAS_gpu
#SBATCH -n @MPIPROCS
#SBATCH -N @NNODES
#SBATCH --tasks-per-node=@MPIPROCS
#SBATCH -t @HOURS:00:00
#SBATCH -p dav
#SBATCH -A NTDD0002
#SBATCH --gres=gpu:v100:@GPURS
#SBATCH -o @OUTFILE_%j.out
#SBATCH -e @OUTFILE_%j.err
#SBATCH --mem=0
#SBATCH --exclusive
module purge
export PATH=/glade/work/ssuresh/1810pgi/linux86-64/18.10/bin/:$PATH
export LD_LIBRARY_PATH=/glade/work/ssuresh/1810pgi/linux86-64/18.10/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/glade/work/ssuresh/1810pgi/linux86-64/18.10/mpi/openmpi-2.1.2/lib/:$LD_LIBRARY_PATH
export PATH=/glade/work/ssuresh/1810pgi/linux86-64/18.10/mpi/openmpi-2.1.2/bin/:$PATH
which mpif90
export PNETCDF=/glade/work/ssuresh/1810pgi/pgi1810_lib/libs-pgi1810/
export NETCDF=/glade/work/ssuresh/1810pgi/pgi1810_lib/libs-pgi1810/
export PIO=/glade/work/ssuresh/1810pgi/pgi1810_lib/libs-pgi1810/
export MPAS_EXTERNAL_LIBS="-L/glade/work/ssuresh/1810pgi/pgi1810_lib/libs-pgi1810/lib/ -lhdf5_hl -lhdf5 -ldl -lz"
export MPAS_EXTERNAL_INCLUDES="-I/glade/work/ssuresh/1810pgi/pgi1810_lib/libs-pgi1810/include"
ulimit -s unlimited
module list
env
sinfo
echo $LD_LIBRARY_PATH
cd /glade/scratch/slaksh/mcworkshop/benchmark
echo $LDFLAGS
export PGI_ACC_TIME=1
#the n argument here is number of tasks per node,
export OMPI_MCA_btl_openib_if_include=mlx5_0
#srun --mem=0 --mpi=pmix -N 1 --ntasks-per-node 4 ./atmosphere_model
srun --mem=0 --mpi=pmix ./atmosphere_model