source:
utils/CI/sette/BATCH_TEMPLATE/batch-X64_KARA_GCC_OMPI_DEBUG
@
15007
Last change on this file since 15007 was 15007, checked in by jchanut, 3 years ago | |
---|---|
File size: 1.7 KB |
Rev | Line | |
---|---|---|
[15007] | 1 | #!/usr/bin/env bash |
2 | ||
3 | #SBATCH -J sette | |
4 | #SBATCH -o sette.%j.out | |
5 | #SBATCH -e sette.%j.err | |
6 | #SBATCH -N NODES | |
7 | #SBATCH --ntasks-per-node=NPROC_NODE | |
8 | #SBATCH -p mono | |
9 | #SBATCH -q normal | |
10 | #SBATCH --time=01:00:00 | |
11 | #SBATCH --exclusive | |
12 | ||
13 | # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these | |
14 | # (via sed operating on this template job file). | |
15 | # | |
16 | OCEANCORES=NPROCS | |
17 | export SETTE_DIR=DEF_SETTE_DIR | |
18 | ||
19 | ############################################################### | |
20 | # | |
21 | export MPIRUN="mpirun --map-by node --bind-to core" | |
22 | # | |
23 | # load sette functions (only post_test_tidyup needed) | |
24 | . ${SETTE_DIR}/all_functions.sh | |
25 | ||
26 | # modules to load | |
27 | module purge | |
28 | module load gcc/9.3.0 openmpi/4.0.5_gcc9.3.0 hdf5/1.8.18_gcc9.3.0 netcdf/4.7.1_gcc9.3.0 xios/trunk_rev2136_gcc9.3.0 | |
29 | export XIO_HOME=${XIOS_DIR} | |
30 | ||
31 | # Don't remove neither change the following line | |
32 | # BODY | |
33 | ||
34 | # | |
35 | # These variables are needed by post_test_tidyup function in all_functions.sh | |
36 | # | |
37 | export INPUT_DIR=DEF_INPUT_DIR | |
38 | export CONFIG_DIR=DEF_CONFIG_DIR | |
39 | export TOOLS_DIR=DEF_TOOLS_DIR | |
40 | export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION | |
41 | export NEW_CONF=DEF_NEW_CONF | |
42 | export CMP_NAM=DEF_CMP_NAM | |
43 | export TEST_NAME=DEF_TEST_NAME | |
44 | export EXE_DIR=DEF_EXE_DIR | |
45 | ulimit -a | |
46 | ulimit -s unlimited | |
47 | # | |
48 | # end of set up | |
49 | ############################################################### | |
50 | # | |
51 | # change to the working directory | |
52 | # | |
53 | cd ${EXE_DIR} | |
54 | echo Running on host `hostname` | |
55 | echo Time is `date` | |
56 | echo Directory is `pwd` | |
57 | # | |
58 | # Run the parallel MPI executable | |
59 | # | |
60 | echo "Running time ${MPIRUN} ./nemo" | |
61 | # | |
62 | if [ MPI_FLAG == "yes" ]; then | |
63 | ${MPIRUN} -n $OCEANCORES ./nemo | |
64 | else | |
65 | time ./nemo | |
66 | fi | |
67 | ||
68 | # | |
69 | post_test_tidyup | |
70 | ||
71 | # END_BODY | |
72 | # Don't remove neither change the previous line | |
73 | ||
74 | ||
75 | exit |
Note: See TracBrowser
for help on using the repository browser.