Repository navigation
Expand file tree
/
Copy pathrun_tests
More file actions
191 lines (161 loc) · 6 KB
/
Copy pathrun_tests
File metadata and controls
191 lines (161 loc) · 6 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#!/bin/bash
echo " "
echo "running miniMD tests scope=$1 input=$2 halfneigh=$3"
echo " use 'make test scope=<val> input=<lj,eam,lj-data,eam-data> halfneigh=<0,1>' or 'bash run_tests <val> <lj,eam,lj-data,eam-data> <0,1>"
echo " for different test complexity"
echo " <val>=0 : very short testrun with 1 MPI rank and a small system"
echo " <val>=1 : short testruns with 1, 3 and 8 MPI ranks and a small system"
echo " <val>=2 : very short testruns with 1, 3 and 8 MPI ranks "
echo " and varying system-size"
echo " <val>=3 : short testruns with 1, 3 and 8 MPI ranks "
echo " and varying system-size"
echo " <val>=4 : testruns with 1, 3 and 8 MPI ranks "
echo " and varying system-size"
echo " <val>=5: short testruns with 1, 3 and 8 MPI ranks + 4 Threads "
echo " and a small system"
echo " <val>=6: very short testruns with 1, 3 and 8 MPI ranks + 4 Threads "
echo " and varying system size"
echo " <val>=7: short testruns with 1, 3 and 8 MPI ranks + 4 Threads "
echo " and varying system size"
echo " <val>=8: testruns with 1, 3 and 8 MPI ranks + 4 Threads "
echo " and varying system size"
echo " <val>=99: run both test 4 and 14 "
echo " and varying system size"
echo " "
echo " You might need to edit the run_ont_test script to set the correct options for your MPI installation."
echo " "
nexe=0
for exe in $4miniMD*
do
nexe=$(expr ${nexe} + 1)
done
if [ ${nexe} -eq 0 ]; then
echo "Did not find a miniMD executable. Aborting."
exit -1
fi
mpi_size=0
nsteps=100
threads=1
ghostcomm=0
scope=$1
input=$2
neighlist=$3
if [ ${#scope} -lt 1 ]; then
scope=0
fi
if [ ${#input} -lt 1 ]; then
input=lj
fi
if [ ${#neighlist} -lt 1 ]; then
neighlist=0
fi
if [ $scope -eq 1 ]; then
nsteps=1000
threads=1
mpi_size=1
fi
if [ $scope -eq 2 ]; then
nsteps=100
threads=1
mpi_size=2
fi
if [ $scope -eq 3 ]; then
nsteps=1000
threads=1
mpi_size=2
fi
if [ $scope -eq 4 ]; then
nsteps=10000
threads=4
mpi_size=2
fi
if [ $scope -eq 5 ]; then
nsteps=1000
threads=4
mpi_size=1
fi
if [ $scope -eq 6 ]; then
nsteps=100
threads=4
mpi_size=2
fi
if [ $scope -eq 7 ]; then
nsteps=1000
threads=4
mpi_size=2
fi
if [ $scope -eq 8 ]; then
nsteps=10000
threads=4
mpi_size=2
fi
if [ $scope -eq 99 ]; then
nsteps=10000
threads=1
mpi_size=2
fi
for exe in $4miniMD*
do
bash run_one_test ${exe} 1 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 1 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 0 ]; then
bash run_one_test ${exe} 3 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 3 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 0 ]; then
bash run_one_test ${exe} 8 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 8 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
done
if [ $scope -eq 99 ]; then
threads=4
for exe in $4miniMD*
do
bash run_one_test ${exe} 1 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 1 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 1 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 0 ]; then
bash run_one_test ${exe} 3 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 3 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 3 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 0 ]; then
bash run_one_test ${exe} 8 ${threads} 10 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
if [ $mpi_size -gt 1 ]; then
bash run_one_test ${exe} 8 ${threads} 16 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 20 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 30 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 40 ${nsteps} ${neighlist} ${ghostcomm} ${input}
bash run_one_test ${exe} 8 ${threads} 60 ${nsteps} ${neighlist} ${ghostcomm} ${input}
fi
done
fi