source: dynamico_lmdz/guided/Experiments/NUDG_DYNAMICO/job.sh @ 4172

Last change on this file since 4172 was 4172, checked in by jisesh, 5 years ago

guided: improved job.sh

File size: 1.7 KB
RevLine 
[4152]1#!/bin/bash
[4172]2#PBS -N NUDG_mpi_omp_DCMIP41
[4152]3#PBS -q day
4#PBS -n
5#PBS -l nodes=1:ppn=40
6#PBS -l walltime=20:30:00
7#PBS -l mem=120gb
8#PBS -l vmem=120gb
9
10#####comment:PBS -l mem=31922327552,ncpus=60
11#Jobs start in the HOME directory, cd to submitted directory
12cd "$PBS_O_WORKDIR"
13
14############################################################
15NCPU=$(wc -l < $PBS_NODEFILE)
16awk "NR % 4 == 0" $PBS_NODEFILE | head -n 40 > nodelist.txt
17
18echo ------------------JOB SUMMARY--------------------------
19echo 'PBS OUT: Job allocated on: '${NCPU}' cpu(s)'
20echo 'PBS OUT: Job running on the following node(s): '
21cat nodelist.txt
22echo -------------------------------------------------------
23echo PBS OUT: Job running on: $PBS_O_HOST
24echo PBS OUT: Originating queue: $PBS_O_QUEUE
25echo PBS OUT: Executing queue: $PBS_QUEUE
26echo PBS OUT: Work directory: $PBS_O_WORKDIR
27echo PBS OUT: Execution mode: $PBS_ENVIRONMENT
28echo PBS OUT: Job identifier: $PBS_JOBID
29echo PBS OUT: Job name: $PBS_JOBNAME
30echo PBS OUT: Node file: $PBS_NODEFILE
31echo PBS OUT: Current home directory: $PBS_O_HOME
32echo PBS OUT: PATH= $PBS_O_PATH
33echo -------------------------------------------------------
34
35
36export OMP_NUM_THREADS=1
37export OMP_STACKSIZE=128M
38ulimit -s unlimited
39
40module purge
41module load gnu/4.9.3
42module load intel/15.0.6.233
43module load openmpi/1.6.5-ifort
44module load hdf5/1.8.18-parallel-ifort
45module load netcdf4/4.4.1.1-parallel-ifort
46
47rm -rf gcm.log logs *.nc netcdf
[4166]48ln -sf  ../../Data/DYNAMICO.nc .
[4152]49ln -sf ../../build/bin/icosa_gcm.exe gcm.exe
50
[4172]51mpirun -np 40 -cpus-per-proc $OMP_NUM_THREADS -bycore -bind-to-core -report-bindings ./gcm.exe 2>&1 >> gcm.log
[4152]52date >> gcm.log
53
54mkdir -p netcdf
[4172]55cp *.def netcdf
[4152]56mv *.nc netcdf
57
58mkdir -p logs
[4172]59cp *.xml gcm.log logs
60
[4152]61mv xios_client_*.err xios_client_*.out gcm.log logs
62
63
Note: See TracBrowser for help on using the repository browser.