-
Notifications
You must be signed in to change notification settings - Fork 2
/
archer2_lfric_atm.sub
22 lines (17 loc) · 1 KB
/
archer2_lfric_atm.sub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#SBATCH --job-name=lfric
#SBATCH --time=00:10:00
#SBATCH --account=n02-cms
#SBATCH --export=none
#SBATCH --reservation=shortqos
#SBATCH --partition=standard
#SBATCH --qos=short
#SBATCH --nodes=2
export BASE_DIR=/loaction/of/base/dir
export CONTAINER=/location/of/container/lfric_env.sif
cd $BASE_DIR/trunk/lfric_atm/example
SHARED_ARGS="--distribution=block:block --hint=nomultithread"
export LOCAL_LD_LIBRARY_PATH="/opt/cray/pe/mpich/default/ucx/gnu/9.1/lib-abi-mpich:/opt/cray/libfabric/1.11.0.4.71/lib64:/opt/cray/pe/pmi/default/lib:\$LD_LIBRARY_PATH"
export BIND_OPT="-B /opt/cray,/usr/lib64:/usr/lib/host,/var/spool/slurmd,/mnt/lustre,/work/n02"
srun --het-group=0 --nodes=1 --tasks-per-node=6 $SHARED_ARGS singularity exec $BIND_OPT --env=LD_LIBRARY_PATH=$LOCAL_LD_LIBRARY_PATH $CONTAINER ../bin/lfric_atm configuration.nml : \
--het-group=1 --nodes=1 --tasks-per-node=1 $SHARED_ARGS singularity exec $BIND_OPT --env=LD_LIBRARY_PATH=$LOCAL_LD_LIBRARY_PATH $CONTAINER /container/usr/bin/xios_server.exe