forked from AurelienNioche/SpatialMoney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge_db.sh
57 lines (42 loc) · 1.42 KB
/
merge_db.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
#!/usr/bin/env bash
#############################
# Your job name (displayed by the queue)
#PBS -N SimuSpatial
#change output file's name
#PBS -e /home/anioche/basile/SpatialEconomy-master/avakas_logs/SimuSpatial.err
#PBS -o /home/anioche/basile/SpatialEconomy-master/avakas_logs/SimuSpatial.log
# Specify the working directory
#PBS -d /home/anioche/basile/SpatialEconomy-master/SpatialEconomy/
# walltime (hh:mm::ss)
#PBS -l walltime=40:00:00
# Specify the number of nodes(nodes=) and the number of cores per nodes(ppn=) to be used
#PBS -l nodes=1:ppn=1
# Specify physical memory: kb for kilobytes, mb for megabytes, gb for gigabytes
#PBS -l mem=15gb
#PBS -m abe
#PBS -M clusterresultssimulation@gmail.com
# fin des directives PBS
#############################
module purge # modules cleaning
module add torque
pyenv local 3.5.2
# module add python3
# module add gcc/4.8.2 # For cpp
# useful informations to print
echo "#############################"
echo "User:" ${USER}
echo "Date:" `date`
echo "Host:" `hostname`
echo "Directory:" `pwd`
echo "PBS_JOBID:" ${PBS_JOBID}
echo "PBS_O_WORKDIR:" ${PBS_O_WORKDIR}
echo "PBS_NODEFILE: " `cat ${PBS_NODEFILE} | uniq`
echo "#############################"
#############################
# What you actually want to launch
echo "Start the job"
echo "merge_db.py"
# launch python script with pickle object for parameters and number of processes
python merge_db.py
# all done
echo "Job finished"