-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathold_run_pp.sh
More file actions
executable file
·52 lines (48 loc) · 1.08 KB
/
old_run_pp.sh
File metadata and controls
executable file
·52 lines (48 loc) · 1.08 KB
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
#!/bin/bash
#
#SBATCH --ntasks=20
#SBATCH --nodes=1
#
# constrain depending on how this was compiled
#SBATCH --constraint=intel20
#
# no hyperthreading necessary
#SBATCH --extra-node-info=2:10:1
#
# job name:
#SBATCH --job-name=smash
#
# (only parallel allowed?)
#SBATCH --partition=parallel
#
# mem allocation (only 200m default)
#SBATCH --mem-per-cpu=1000
#
# default time 10min, max 8 days?:
#SBATCH --time=0-9:59:59
smash_build_folder=$1
sqrtsnn=$2
rm -rf "data_$sqrtsnn"
mkdir "data_$sqrtsnn"
start_dir=$PWD
cd $smash_build_folder
run_smash() {
i=$1 # get index
mkdir "$start_dir/data_$sqrtsnn/$i"
./smash -i "$start_dir/config.yaml" \
-c "Modi: {Collider: {Sqrtsnn: $sqrtsnn}}" \
-o "$start_dir/data_$sqrtsnn/$i" \
> "$start_dir/data_$sqrtsnn/$i/out.txt"
cd $start_dir
python x_F_hist.py "data_$sqrtsnn/$i" $sqrtsnn
}
ncpu=`grep -c '^processor' /proc/cpuinfo`
for (( i=1; i<=$ncpu; i++ ))
do
run_smash ${i} &
done
wait
cd $start_dir
rm -rf "data_$sqrtsnn/plot_data"
mkdir "data_$sqrtsnn/plot_data"
python gather_data.py $sqrtsnn $ncpu