source: dynamico_lmdz/guided/Experiments/job.sh @ 4145

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

LAM setup : fixes to scripts/symlinks

File size: 1.6 KB
Line 
1#!/bin/bash
2#PBS -N LAM_DCMIP
3#PBS -q std
4#PBS -n
5#PBS -l nodes=1:ppn=64
6#PBS -l walltime=00:15:00
7#PBS -l mem=50gb
8#PBS -l vmem=50gb
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
40. ../DYNAMICO/arch.env
41
42rm -rf gcm.log logs *.nc netcdf
43ln -s  ../Data/*.nc
44
45mpirun -np 60 -cpus-per-proc $OMP_NUM_THREADS -bycore -bind-to-core -report-bindings ./gcm.exe >> gcm.log
46#gdb ./gcm.exe >> gcm.log
47date >> gcm.log
48
49mkdir -p netcdf
50cp gcm.log *.def netcdf
51mv *.nc netcdf
52
53mkdir -p logs
54cp *.xml logs
55cp -pr gcm.exe logs
56cp -pr ../DYNAMICO/src logs
57mv xios_client_*.err xios_client_*.out gcm.log logs
Note: See TracBrowser for help on using the repository browser.