source: utils/CI/sette/BATCH_TEMPLATE/batch-X64_ADA_O0 @ 9696

Last change on this file since 9696 was 9696, checked in by clem, 3 years ago

change mpirun to poe for ADA

File size: 1.8 KB
Line 
1#!/bin/bash
2#!
3# @ job_name = MPI_config
4# standard output file 
5# @ output = $(job_name).$(jobid)
6# standard error file
7# @ error =  $(job_name).$(jobid)
8# job type
9# @ job_type = parallel
10# Number of procs
11# @ total_tasks = NPROCS
12# time
13# @ wall_clock_limit = 00:59:00
14# @ queue
15
16#
17# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
18# (via sed operating on this template job file).
19#
20  OCEANCORES=NPROCS
21  export SETTE_DIR=DEF_SETTE_DIR
22
23###############################################################
24#
25# set up mpp computing environment
26#
27# Local settings for machine IBM Power6 (VARGAS at IDRIS France)
28#
29#export MPIRUN="poe -procs $OCEANCORES"
30#export MPIRUN="mpirun"
31export MPIRUN="poe"
32
33#
34# load sette functions (only post_test_tidyup needed)
35#
36  . ${SETTE_DIR}/all_functions.sh
37#
38
39# Don't remove neither change the following line
40# BODY
41
42#
43# These variables are needed by post_test_tidyup function in all_functions.sh
44#
45  export EXE_DIR=DEF_EXE_DIR
46  export INPUT_DIR=DEF_INPUT_DIR
47  export CONFIG_DIR=DEF_CONFIG_DIR
48  export TOOLS_DIR=DEF_TOOLS_DIR
49  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
50  export NEW_CONF=DEF_NEW_CONF
51  export CMP_NAM=DEF_CMP_NAM
52  export TEST_NAME=DEF_TEST_NAME
53#
54# end of set up
55###############################################################
56#
57# change to the working directory
58#
59cd ${EXE_DIR}
60
61  echo Running on host `hostname`
62  echo Time is `date`
63  echo Directory is `pwd`
64#
65#  Run the parallel MPI executable
66#
67#  echo "Running time ${MPIRUN} ./nemo"
68#
69  if [ MPI_FLAG == "yes" ]; then
70     echo "Running time ${MPIRUN} -np $OCEANCORES ./nemo"
71     #time ${MPIRUN} -np $OCEANCORES ./nemo
72     time ${MPIRUN} ./nemo -procs $OCEANCORES
73  else
74     echo "Running time ./nemo"
75     time ./nemo
76  fi
77
78#
79  post_test_tidyup
80
81# END_BODY
82# Don't remove neither change the previous line
83
84
85  exit
Note: See TracBrowser for help on using the repository browser.