forked from PyCOMPLETE/PyPARIS_sim_class
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.cmd.example
37 lines (28 loc) · 910 Bytes
/
job.cmd.example
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
#!/bin/bash
#BSUB -J blkd_0001
#BSUB -o %J.out
#BSUB -e %J.err
#BSUB -N
#BSUB -B
#BSUB -q hpc_acc
#B -a openmpi
#BSUB -n 16
#BSUB -R span[ptile=16]
#source setup_env_cnaf
export PYFRIENDSPATH=/home/giadarol/Desktop/PyFRIENDS
export STUDYPATH=
export PYTHONPATH=$PYTHONPATH:$STUDYPATH:$PYFRIENDSPATH
CURRDIR=TBD
cd $CURRDIR
pwd
cd ../../PyPARIS_sim_class
echo "Version:" > ../SimClass_git_info.txt
cat __version__.py >> ../SimClass_git_info.txt
echo " " >> ../SimClass_git_info.txt
echo "git status:" >> ../SimClass_git_info.txt
git status >> ../SimClass_git_info.txt
echo "git log -n 1:" >> ../SimClass_git_info.txt
git log -n 1 >> ../SimClass_git_info.txt
cd $CURRDIR
cp ../../PyPARIS_sim_class/Simulation.py .
stdbuf -oL python $PYFRIENDSPATH/PyPARIS/multiprocexec.py -n 16 sim_class=Simulation.Simulation >> opic.txt 2>> epic.txt