New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
batch-ifort_athena_xios_omp in trunk/NEMOGCM/SETTE/BATCH_TEMPLATE – NEMO

source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_athena_xios_omp @ 7702

Last change on this file since 7702 was 7699, checked in by mocavero, 7 years ago

added OpenMP arch file and batch template for CMCC

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1#!/bin/bash
2#!
3#BSUB -q poe_short
4#BSUB -n TOTAL_NPROCS
5#BSUB -a poe
6#BSUB -R "span[ptile=NPROC_NODE]"
7#BSUB -J NEMO_SETTE
8#BSUB -o poe.stdout.%J
9#BSUB -e poe.stderr.%J
10#BSUB -x
11
12 
13
14###############################################################
15# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
16# (via sed operating on this template job file).
17#
18  OCEANCORES=NPROCS
19  XIOS_NUMPROCS=NXIOPROCS
20  export SETTE_DIR=DEF_SETTE_DIR
21
22  export MP_TASK_AFFINITY=mcm
23  export OMP_NUM_THREADS=OMP_NTHR
24
25###############################################################
26#
27# set up mpp computing environment
28#
29# Local settings for machine IBM Power6 (VARGAS at IDRIS France)
30#
31
32# export MPIRUN="mpirun -n $OCEANCORES"
33
34module load  INTEL/intel_xe_2013 NETCDF/netcdf-4.3_parallel NETCDF/parallel-netcdf-1.3.1 HDF5/hdf5-1.8.11_parallel
35export MPIRUN="mpirun.lsf"
36
37export LD_LIBRARY_PATH=${XIOS}/lib:${LD_LIBRARY_PATH}
38
39XIOS_SERVER_PATHNAME="${XIOS}/bin/xios_server.exe"
40
41#
42# load sette functions (only post_test_tidyup needed)
43#
44  . ${SETTE_DIR}/all_functions.sh
45
46
47# Don't remove neither change the following line
48# BODY
49
50#
51# These variables are needed by post_test_tidyup function in all_functions.sh
52#
53  export EXE_DIR=DEF_EXE_DIR
54  export INPUT_DIR=DEF_INPUT_DIR
55  export CONFIG_DIR=DEF_CONFIG_DIR
56  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
57  export NEW_CONF=DEF_NEW_CONF
58  export CMP_NAM=DEF_CMP_NAM
59  export TEST_NAME=DEF_TEST_NAME
60#
61# end of set up
62
63
64###############################################################
65#
66# change to the working directory
67#
68cd ${EXE_DIR}
69
70#
71  echo Running on host `hostname`
72  echo Time is `date`
73  echo Directory is `pwd`
74#
75#  Run the parallel MPI executable
76#
77#  echo "Running time ${MPIRUN} " $OCEANCORES " ./opa"
78#
79
80  if [ MPI_FLAG == "yes" ]; then
81     if [ $XIOS_NUMPROCS -eq 0 ]; then
82       time ${MPIRUN} ./opa
83     else
84
85       export MP_PGMMODEL=mpmd
86       export MP_CMDFILE=xioscmdfile
87       rm xioscmdfile &> /dev/null
88       touch xioscmdfile
89       k=0
90       while (( k < $OCEANCORES )) ; do
91          echo ./opa >> xioscmdfile
92          k=`expr $k + 1`
93       done
94       k=0
95       while (( k < $XIOS_NUMPROCS )) ; do
96          echo $XIOS_SERVER_PATHNAME >> xioscmdfile
97          k=`expr $k + 1`
98       done
99
100       time ${MPIRUN}
101     fi
102  else
103     time ./opa
104  fi
105#
106  post_test_tidyup
107
108# END_BODY
109# Don't remove neither change the previous line
110
111  exit
Note: See TracBrowser for help on using the repository browser.