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-X64_JEANZAY in utils/CI/sette/BATCH_TEMPLATE – NEMO

source: utils/CI/sette/BATCH_TEMPLATE/batch-X64_JEANZAY @ 11606

Last change on this file since 11606 was 11606, checked in by cetlod, 5 years ago

Add batch template for CNRS new computer JEAN-ZAY

File size: 2.1 KB
RevLine 
[11606]1#!/bin/bash
2#SBATCH --job-name=SETTE_JOB      # nom du job
3#SBATCH --partition=cpu_port       # Nom de la partition d'exécution
4#SBATCH --ntasks=NPROCS                # Nombre total de processus MPI
5#SBATCH --ntasks-per-node=40       # Nombre de processus MPI par noeud
6# /!\ Attention, la ligne suivante est trompeuse mais dans le vocabulaire
7# de Slurm "multithread" fait bien référence à l'hyperthreading.
8#SBATCH --hint=nomultithread       # 1 processus MPI par coeur physique (pas d'hyperthreading)
9#SBATCH --time=00:59:00            # Temps d’exécution maximum demande (HH:MM:SS)
10#SBATCH --output=sette.jobid_%j.out  # Nom du fichier de sortie
11#SBATCH --error=sette.jobid_%j.out   # Nom du fichier d'erreur (ici commun avec la sortie)
12##########################################################################
13#
14# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
15# (via sed operating on this template job file).
16#
17  OCEANCORES=NPROCS
18  export SETTE_DIR=DEF_SETTE_DIR
19#
20# set up mpp computing environment
21#
22# Local settings for machine BULL (TITANE at CCRT France)
23#
24export MPIRUN="/usr/bin/time srun --mpi=pmi2"
25
26#
27# load sette functions (only post_test_tidyup needed)
28#
29  . ${SETTE_DIR}/all_functions.sh
30#
31
32# modules to load
33
34# Don't remove neither change the following line
35# BODY
36
37#
38# These variables are needed by post_test_tidyup function in all_functions.sh
39#
40  export EXE_DIR=DEF_EXE_DIR
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#
49# end of set up
50###############################################################
51#
52# change to the working directory
53#
54cd ${EXE_DIR}
55
56  echo Running on host `hostname`
57  echo Time is `date`
58  echo Directory is `pwd`
59#
60#  Run the parallel MPI executable
61#
62  echo "Running time ${MPIRUN} ./nemo"
63#
64  if [ MPI_FLAG == "yes" ]; then
65     time ${MPIRUN} ./nemo
66  else
67     time ./nemo
68  fi
69
70#
71  post_test_tidyup
72
73# END_BODY
74# Don't remove neither change the previous line
75
76
77  exit
78
Note: See TracBrowser for help on using the repository browser.