Changeset 14825 for utils/CI/sette/BATCH_TEMPLATE/batch-X86_ARCHER2-Cray
- Timestamp:
- 2021-05-10T16:42:39+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/CI/sette/BATCH_TEMPLATE/batch-X86_ARCHER2-Cray
r13790 r14825 1 1 #!/bin/bash 2 #SBATCH --job-name=sette_test3 #SBATCH --time=0:20:04 #SBATCH --nodes=NODES5 #SBATCH --ntasks=TOTAL_NPROCS6 #SBATCH --account=n017 #SBATCH --partition=standard8 #SBATCH --qos=standard9 ##BATCH --reservation=shortqos10 ##BATCH --qos=short11 module -s restore /work/n01/shared/acc/n01_modules/ucx_env12 2 # 13 export XIO_HOME=/work/n01/shared/acc/xios-2.5 3 # A batch script will be generated using: 4 # /work/n01/shared/acc/mkslurm_settejob -S $NXIO_PROC -s 8 -m 4 -C $NB_PROC -g 2 -a n01-CLASS -j sette_job -t 20:00 > ${SETTE_DIR}/job_batch_template 5 # by prepare_job.sh 14 6 # 15 export OMP_NUM_THREADS=116 export OCORES=NPROCS17 export XCORES=NXIOPROCS18 export SETTE_DIR=DEF_SETTE_DIR19 #20 # load sette functions (only post_test_tidyup needed)21 #22 . ${SETTE_DIR}/all_functions.sh23 ###############################################################24 #25 # set up mpp computing environment26 #27 #28 # Local settings. These settings are for a particular machine (the MOBILIS ClusterVision29 # system at NOCS) at a particular stage of that machine's evolution. This template file30 # is provided for illustration purposes only and will not work on any other machine. There31 # should, however, be sufficient similarity with other MPP platforms and batch systems32 # for this example to provide a useful guide for experienced users33 #34 # Don't remove neither change the following line35 # BODY36 #37 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these38 # (via sed operating on this template job file). Note that the number of compute nodes required39 # is also set by the fcm_job.sh on the PBS select header line above.40 #41 # These variables are needed by post_test_tidyup function in all_functions.sh42 #43 export INPUT_DIR=DEF_INPUT_DIR44 export CONFIG_DIR=DEF_CONFIG_DIR45 export TOOLS_DIR=DEF_TOOLS_DIR46 export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION47 export NEW_CONF=DEF_NEW_CONF48 export CMP_NAM=DEF_CMP_NAM49 export TEST_NAME=DEF_TEST_NAME50 export EXE_DIR=DEF_EXE_DIR51 #52 # end of set up53 ###############################################################54 #55 # change to the working directory56 #57 cd $EXE_DIR58 echo Directory is `pwd`59 if [ $XCORES -eq 0 ]; then60 #61 # Run SPMD case62 #63 echo srun --cpu-bind=v,rank_ldom -n $OCORES ./nemo64 srun --cpu-bind=v,rank_ldom -n $OCORES ./nemo65 else66 if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then67 cp ${XIO_HOME}/bin/xios_server.exe .68 fi69 if [ ! -f ./xios_server.exe ]; then70 echo "./xios_server.exe not found"71 echo "run aborted"72 exit73 fi74 #75 # Run MPMD case76 #77 cat > myscript_wrapper2.sh << EOFB78 #!/bin/ksh79 #80 set -A map ./xios_server.exe ./nemo81 exec_map=( 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 )82 #83 exec \${map[\${exec_map[\$SLURM_PROCID]}]}84 ##85 EOFB86 chmod u+x ./myscript_wrapper2.sh87 #88 srun --mem-bind=local --cpu-bind=v,map_cpu:00,0x4,0x8,0xc,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x1e,0x20,0x22,0x24,0x26,0x28,0x2a,0x2c,0x2e,0x30,0x32,0x34,0x36,0x38,0x3a,0x3c,0x3e,0x40,0x42,0x44,0x46,0x48,0x4a,0x4c,0x4e,0x50,0x52,0x54,0x56,0x58,0x5a,0x5c,0x5e,0x60,0x62,0x64,0x66,0x68,0x6a,0x6c,0x6e,0x70,0x72,0x74,0x76,0x78,0x7a,0x7c,0x7e, ./myscript_wrapper2.sh89 #90 fi91 #92 post_test_tidyup93 # END_BODY94 # Don't remove neither change the previous line95 exit
Note: See TracChangeset
for help on using the changeset viewer.