-
Notifications
You must be signed in to change notification settings - Fork 7
/
runall_L1stats.sh
executable file
·51 lines (43 loc) · 1.76 KB
/
runall_L1stats.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
#!/bin/bash
for sm in 0 6; do
for ppi in 0; do #VS Amyg FFA; putting 0 first will indicate "activation"
#for subrun in "104 5" "105 5" "106 3" "107 5" "108 5" "109 2" "110 2" "112 5" "113 5" "111 5" "115 5" "116 5" "117 5" "118 5" "120 5" "121 5" "122 5" "124 5" "125 5" "126 5" "127 5" "128 5" "129 5" "130 5" "131 5" "132 5" "133 5" "134 4" "135 5" "136 2" "137 5" "138 4"; do
for subrun in "104 5" "105 5" "106 3" "107 5" "108 5" "109 2" "110 2" "112 5" "113 5" "111 5" "115 5" "116 5" "117 5" "118 5" "120 5" "121 5" "122 5" "124 5" "125 5" "126 5" "127 5" "128 5" "129 5" "130 5" "131 5" "132 5" "133 5" "134 4" "135 5" "136 2" "137 5" "138 4" "140 5" "141 4" "142 5" "144 2" "145 2" "147 5" "149 4" "150 5" "151 5" "143 3" "152 2" "153 5" "154 2"; do
set -- $subrun
sub=$1
nruns=$2
#echo "$sub $nruns"
for run in `seq $nruns`; do
#Manages the number of jobs and cores
SCRIPTNAME=L1_task-trust_model-01.sh
NCORES=14
while [ $(ps -ef | grep -v grep | grep $SCRIPTNAME | wc -l) -ge $NCORES ]; do
sleep 1s
done
bash $SCRIPTNAME $sub $run $ppi $sm &
sleep 1s
done
for run in `seq 2`; do
#Manages the number of jobs and cores
SCRIPTNAME=L1_task-sharedreward_model-01.sh
NCORES=5
while [ $(ps -ef | grep -v grep | grep $SCRIPTNAME | wc -l) -ge $NCORES ]; do
sleep 1s
done
bash $SCRIPTNAME $sub $run $ppi $sm &
sleep 1s
done
for run in `seq 2`; do
#Manages the number of jobs and cores
SCRIPTNAME=L1_task-ultimatum_model-01.sh
NCORES=5
while [ $(ps -ef | grep -v grep | grep $SCRIPTNAME | wc -l) -ge $NCORES ]; do
sleep 1s
done
bash $SCRIPTNAME $sub $run $ppi $sm &
sleep 1s
done
done
sleep 20m
done
done