source: branches/2017/dev_merge_2017/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-mpmd-ALTIX_NAUTILUS_MPT @ 9576

Last change on this file since 9576 was 9576, checked in by nicolasmartin, 2 years ago

Global renaming for SETTE + fix for key_lim3 in MY_SRC: push remaining modifications in order to start from a clean checkout

File size: 3.4 KB
Line 
1#!/bin/bash
2#!
3#PBS -N NEMO
4#PBS -l select=NODES:ncpus=8:mpiprocs=4
5#PBS -l place=scatter:excl
6#PBS -l walltime=00:59:00
7#PBS -q nemo
8#PBS -W group_list=nemo
9#PBS -j oe
10#
11  OCEANCORES=NPROCS
12  XIOCORES=NXIOPROCS
13  export SETTE_DIR=DEF_SETTE_DIR
14#
15# load sette functions (only post_test_tidyup needed)
16#
17  . ${SETTE_DIR}/all_functions.sh
18###############################################################
19#
20# set up mpp computing environment
21#
22#
23# Local settings. These settings are for a particular machine (the ALTIX ICE system at NOCS)
24# at a particular stage of that machine's evolution. This template file is provided for
25# illustration purposes only and will not work on any other machine. There should, however,
26# be sufficient similarity with other MPP platforms and batch systems for this example to provide
27# a useful guide for experienced users
28#
29  module load mpt/2.03
30  export MPT_HOME=/opt/sgi/mpt/mpt-2.03
31  export NC4_HOME=/fibre/omfman/NETCDF_PAR
32  export HD5_HOME=/fibre/omfman/NETCDF_PAR
33  export XIO_HOME=/fibre/omfman/XIOS
34  export SVN_HOME=/nerc/packages/subversion/v1.7.2
35  export FTN_LIB=/sw/Intel/fce/11.1.072/lib/intel64
36  export ICC_LIB=/sw/Intel/cce/11.1.072/lib/intel64
37#
38  echo Running on host `hostname`
39  echo Time is `date`
40  echo PBS job ID is $PBS_JOBID
41  echo This jobs runs on the following machines:
42  echo `cat $PBS_NODEFILE | uniq`
43#
44# Create a machine file for MPI
45  cat $PBS_NODEFILE | uniq > host.file.$PBS_JOBID
46#
47  echo export LD_LIBRARY_PATH=${MPT_HOME}/lib:${ICC_LIB}:${FTN_LIB}:${NC4_HOME}/lib:${HD5_HOME}/lib:${SVN_HOME}/lib:${LD_LIBRARY_PATH}
48  export LD_LIBRARY_PATH=${MPT_HOME}/lib:${ICC_LIB}:${FTN_LIB}:${NC4_HOME}/lib:${HD5_HOME}/lib:${SVN_HOME}/lib:${LD_LIBRARY_PATH}
49#
50  echo export PATH=${MPT_HOME}/bin:${SVN_HOME}/bin:$PATH
51  export PATH=${MPT_HOME}/bin:${SVN_HOME}/bin:$PATH
52#
53  export PSM_SHAREDPORTS=1
54  echo export MPI_PPN=4
55  echo export MPI_PPN_CLIST="2-3-6-7-0-1-4-5"
56  echo export OMP_NUM_THREADS=1
57#
58# Don't remove neither change the following line
59# BODY
60#
61# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
62# (via sed operating on this template job file). Note that the number of compute nodes required
63# (half-populated on the NOCS ALTIX system) is also set by the fcm_job.sh on the PBS select
64# header line above.
65#
66# These variables are needed by post_test_tidyup function in all_functions.sh
67#
68  export INPUT_DIR=DEF_INPUT_DIR
69  export CONFIG_DIR=DEF_CONFIG_DIR
70  export TOOLS_DIR=DEF_TOOLS_DIR
71  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
72  export NEW_CONF=DEF_NEW_CONF
73  export CMP_NAM=DEF_CMP_NAM
74  export TEST_NAME=DEF_TEST_NAME
75  export EXE_DIR=DEF_EXE_DIR
76#
77# end of set up
78###############################################################
79#
80# change to the working directory
81#
82# cd $PBS_O_WORKDIR
83  cd $EXE_DIR
84  echo Directory is `pwd`
85  if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ] 
86   then
87     cp ${XIO_HOME}/bin/xios_server.exe .
88  fi
89  if [ ! -f ./xios_server.exe ]
90   then
91     echo "./xios_server.exe not found"
92     echo "run aborted"
93     exit
94  fi
95#
96#
97#  Run the parallel MPI executable
98#
99  echo "Running time ${MPT_HOME}/bin/mpiexec_mpt -np " $XIOCORES " ./xios_server.exe : -np " $OCEANCORES " ./nemo"
100#
101  time ${MPT_HOME}/bin/mpiexec_mpt -np $XIOCORES ./xios_server.exe :  -np $OCEANCORES ./nemo
102#
103  post_test_tidyup
104# END_BODY
105# Don't remove neither change the previous line
106  exit
Note: See TracBrowser for help on using the repository browser.