forked from substellar/brewster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUH_PBS_script.sh
executable file
·68 lines (51 loc) · 1.66 KB
/
UH_PBS_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#PBS -S /bin/tcsh
#PBS -N YOUR_RUN_NAME
#PBS -m abe
#PBS -l nodes=8:ppn=32
#PBS -l walltime=1:00:00
#PBS -k oe
#PBS -q main
source ~/.tcshrc
module load use.own
module unload mpich2-x86_64
module unload openmpi-4.0.5
module load openmpi-4.0.5
# This should be your working directory
setenv WDIR /home/bb/retrievals/longWaveMie
# Add the working directory to your path
setenv PATH ${PATH}:${WDIR}
# Add WD to LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${WDIR}
# Add WD to Python path
setenv PYTHONPATH ${WDIR}
# Active python 3 environment
py3up
unlimit stacksize
limit coredumpsize 0
set time_start=`date '+%T%t%d_%h_06'`
echo ------------------------------------------------------
echo -n 'Job is running on node '; cat $PBS_NODEFILE
echo ------------------------------------------------------
echo PBS: qsub is running on $PBS_O_HOST
echo PBS: originating queue is $PBS_O_QUEUE
echo PBS: executing queue is $PBS_QUEUE
echo PBS: working directory is $PBS_O_WORKDIR
echo PBS: execution mode is $PBS_ENVIRONMENT
echo PBS: job identifier is $PBS_JOBID
echo PBS: job name is $PBS_JOBNAME
echo PBS: node file is $PBS_NODEFILE
echo PBS: current home directory is $PBS_O_HOME
echo PBS: PATH = $PBS_O_PATH
echo LD PATH = $LD_LIBRARY_PATH
echo ------------------------------------------------------
cd ${WDIR}
#mpirun -bind-to core \
# -machinefile $PBS_NODEFILE -n 256 \
# python YOUR_BREWSTER.py > /your/path/for/saving/log
mpiexec python YOUR_BREWSTER.py > /your/path/for/saving/log
set time_end=`date '+%T%t%d_%h_06'`
echo Started at: $time_start
echo Ended at: $time_end
echo ------------------------------------------------------
echo Job ends
#mpdallexit