source: utils/CI/sette/BATCH_TEMPLATE/batch-X64_MOBILIS @ 11655

Last change on this file since 11655 was 11655, checked in by smueller, 2 years ago

Addition of explicit job-name specification in the batch-script template for the NOC HPC system

File size: 3.3 KB
Line 
1#!/bin/bash
2#SBATCH -N NODES
3#SBATCH --time=00:59:00
4#SBATCH -J nemo_sette
5
6module purge
7module load shared
8module use /home/acc/MyMods
9# set programming environment and XIO_HOME
10module load nemo-PrgEnv/4.0
11
12#
13  export OMP_NUM_THREADS=1
14  export OCORES=NPROCS
15  export XCORES=NXIOPROCS
16  export SETTE_DIR=DEF_SETTE_DIR
17#
18# load sette functions (only post_test_tidyup needed)
19#
20  . ${SETTE_DIR}/all_functions.sh
21###############################################################
22#
23# set up mpp computing environment
24#
25#
26# Local settings. These settings are for a particular machine (the MOBILIS ClusterVision
27# system at NOCS) at a particular stage of that machine's evolution. This template file
28# is provided for illustration purposes only and will not work on any other machine. There
29# should, however, be sufficient similarity with other MPP platforms and batch systems
30# for this example to provide a useful guide for experienced users
31#
32# Don't remove neither change the following line
33# BODY
34#
35# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
36# (via sed operating on this template job file). Note that the number of compute nodes required
37# is also set by the fcm_job.sh on the PBS select header line above.
38#
39# These variables are needed by post_test_tidyup function in all_functions.sh
40#
41  export INPUT_DIR=DEF_INPUT_DIR
42  export CONFIG_DIR=DEF_CONFIG_DIR
43  export TOOLS_DIR=DEF_TOOLS_DIR
44  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
45  export NEW_CONF=DEF_NEW_CONF
46  export CMP_NAM=DEF_CMP_NAM
47  export TEST_NAME=DEF_TEST_NAME
48  export EXE_DIR=DEF_EXE_DIR
49#
50# end of set up
51###############################################################
52#
53# change to the working directory
54#
55  cd $EXE_DIR
56  echo Directory is `pwd`
57  if [ $XCORES -eq 0 ]; then
58#
59# Run SPMD case
60#
61       echo time `which mpirun` --report-bindings -x MALLOC_MMAP_MAX_=-1                 \
62                                -x MALLOC_TRIM_THRESHOLD_=33554432 -np $OCORES --bynode  \
63                                --mca mpi_paffinity_alone 1 ./nemo
64            time `which mpirun` --report-bindings -x MALLOC_MMAP_MAX_=-1                 \
65                                -x MALLOC_TRIM_THRESHOLD_=33554432 -np $OCORES --bynode  \
66                                --mca mpi_paffinity_alone 1 ./nemo
67  else
68       if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then
69          cp ${XIO_HOME}/bin/xios_server.exe .
70       fi
71       if [ ! -f ./xios_server.exe ]; then
72          echo "./xios_server.exe not found"
73          echo "run aborted"
74          exit
75       fi
76#
77#  Run MPMD case
78#
79       echo time `which mpirun` --report-bindings -x MALLOC_MMAP_MAX_=-1 \
80                                -x MALLOC_TRIM_THRESHOLD_=33554432       \
81                                -np $XCORES ./xios_server.exe            \
82                              : -np $OCORES --bynode  --mca mpi_paffinity_alone 1 ./nemo
83#
84            time `which mpirun` --report-bindings -x MALLOC_MMAP_MAX_=-1 \
85                                -x MALLOC_TRIM_THRESHOLD_=33554432       \
86                                -np $XCORES ./xios_server.exe            \
87                              : -np $OCORES --bynode  --mca mpi_paffinity_alone 1 ./nemo
88#
89  fi
90#
91  post_test_tidyup
92# END_BODY
93# Don't remove neither change the previous line
94  exit
Note: See TracBrowser for help on using the repository browser.