-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit_exam2m.py
More file actions
54 lines (38 loc) · 938 Bytes
/
submit_exam2m.py
File metadata and controls
54 lines (38 loc) · 938 Bytes
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
from charm_header import *
num_nodes=2
max_nodes=64
#max_nodes=1
#proj=True
proj=False
stats=False
#stats=True
prev=False
#prev=True
#debug=True
debug=False
exam2mdir=exam2mdirs[key]
if(prev):
exam2mdir += "_prev"
while num_nodes <= max_nodes:
#voxLens = [0.008, 0.01, 0.05]
#voxLens = [0.025, 0.075]
#voxLens = [0.01, 0.025, 0.05, 0.075]
#voxLens = [0.01, 0.025, 0.075]
voxLens = [0.05]
#voxLens = [0.075]
for vox in voxLens:
voxLen = str(vox)
scriptDir = exam2mdir + "/scripts/generatedScripts/"
scriptname = "exam2m_mpi_nonsmp_sphere_cube_" + str(num_nodes) + "_" + voxLen
if(debug):
scriptname += "_debug"
if(prev):
scriptname += "_prev"
if(stats):
scriptname += "_stats"
if(proj):
scriptname += "_proj"
scriptname += "_script";
print "sbatch "+scriptDir + scriptname
os.system("sbatch "+scriptDir + scriptname)
num_nodes = num_nodes*2