source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-XC_ARCHER_INTEL @ 4814

Last change on this file since 4814 was 4814, checked in by acc, 7 years ago

Changes to enable SETTE testing on ARCHER. Includes a new batch template (batch-XC_ARCHER_INTEL) and additions to prepare_job.sh which do not impact any other architectures

  • Property svn:executable set to *
File size: 2.8 KB
Line 
1#!/bin/bash
2#!
3#PBS -N nemo_sette
4#PBS -l walltime=00:59:00
5#PBS -l select=NODES
6#PBS -j oe
7#PBS -A n01-Global
8
9
10  export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)               
11  export OMP_NUM_THREADS=1
12  cd $PBS_O_WORKDIR
13#
14  echo " ";
15  export OMP_NUM_THREADS=1
16  O_PER_NODE=24
17  X_PER_NODE=4
18  OCORES=NPROCS
19  if [ $OCORES -le 23 ] ; then O_PER_NODE=$OCORES; fi
20  XCORES=NXIOPROCS
21  if [ $XCORES -le 3 ] ; then X_PER_NODE=$XCORES; fi
22  export SETTE_DIR=DEF_SETTE_DIR
23  export XIO_HOME=/home/acc/XIOS
24###############################################################
25#
26#
27# load sette functions (only post_test_tidyup needed)
28#
29  . ${SETTE_DIR}/all_functions.sh
30###############################################################
31#
32# set up mpp computing environment
33#
34#
35# Local settings. These settings are for a particular machine (the MOBILIS ClusterVision
36# system at NOCS) at a particular stage of that machine's evolution. This template file
37# is provided for illustration purposes only and will not work on any other machine. There
38# should, however, be sufficient similarity with other MPP platforms and batch systems
39# for this example to provide a useful guide for experienced users
40#
41# Don't remove neither change the following line
42# BODY
43#
44# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
45# (via sed operating on this template job file). Note that the number of compute nodes required
46# is also set by the fcm_job.sh on the PBS select header line above.
47#
48# These variables are needed by post_test_tidyup function in all_functions.sh
49#
50  export INPUT_DIR=DEF_INPUT_DIR
51  export CONFIG_DIR=DEF_CONFIG_DIR
52  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
53  export NEW_CONF=DEF_NEW_CONF
54  export CMP_NAM=DEF_CMP_NAM
55  export TEST_NAME=DEF_TEST_NAME
56  export EXE_DIR=DEF_EXE_DIR
57  ulimit -c unlimited
58  ulimit -s unlimited
59  export FORT_FMT_RECL=132
60#
61# end of set up
62###############################################################
63#
64# change to the working directory
65#
66  cd $EXE_DIR
67  echo Directory is `pwd`
68  if [ $XCORES -eq 0 ]; then
69#
70# Run SPMD case
71#
72       echo time aprun -b  -n $OCORES -N $O_PER_NODE ./opa
73            time aprun -b  -n $OCORES -N $O_PER_NODE ./opa
74  else
75       if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then
76          cp ${XIO_HOME}/bin/xios_server.exe .
77       fi
78       if [ ! -f ./xios_server.exe ]; then
79          echo "./xios_server.exe not found"
80          echo "run aborted"
81          exit
82       fi
83#
84#  Run MPMD case
85#
86       echo time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./opa
87            time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./opa
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.