155
# Run the jobs here. We can be reasonably sure of running
156
# 512 cnode jobs (one midplane). Other sizes may not be supported
157
# due to architecture (I/O node count) and/or slurm configuration
159
if {[run_batch_jobs 32 $32node_block_cnt $file_in ] == 0} {
160
send_user "\nFAILURE: 32 cnodes can't be created\n"
164
if {[run_batch_jobs 128 $128node_block_cnt $file_in ] == 0} {
165
send_user "\nFAILURE: 128 cnodes can't be created\n"
169
if {[run_batch_jobs 512 $512node_block_cnt $file_in ] != 1} {
170
send_user "\nFAILURE: 512 cnodes can't be created\n"
174
if {[run_batch_jobs 1k $1knode_block_cnt $file_in ] == 0} {
175
send_user "\nFAILURE: 1k cnodes can't be created\n"
179
if {[run_batch_jobs 4k $4knode_block_cnt $file_in ] == 0} {
180
send_user "\nFAILURE: 4k cnodes can't be created\n"
184
if {[run_batch_jobs 8k $8knode_block_cnt $file_in ] == 0} {
185
send_user "\nFAILURE: 8k cnodes can't be created\n"
189
if {[run_batch_jobs 16k $16knode_block_cnt $file_in ] == 0} {
190
send_user "\nFAILURE: 16k cnodes can't be created\n"
194
if {[run_batch_jobs 32k $32knode_block_cnt $file_in ] == 0} {
195
send_user "\nFAILURE: 32k cnodes can't be created\n"
199
if {[run_batch_jobs 1k $1knode_block_cnt $file_in ] == 0} {
200
send_user "\nFAILURE: 1k cnodes can't be created\n"
204
if {[run_batch_jobs 512 $512node_block_cnt $file_in ] != 1} {
205
send_user "\nFAILURE: 512 cnodes can't be created\n"
209
if {[run_batch_jobs 128 $128node_block_cnt $file_in ] == 0} {
210
send_user "\nFAILURE: 128 cnodes can't be created\n"
214
if {[run_batch_jobs 32 $32node_block_cnt $file_in ] == 0} {
215
send_user "\nFAILURE: 32 cnodes can't be created\n"
219
if {[run_batch_jobs 512 $512node_block_cnt $file_in ] == 0} {
220
send_user "\nFAILURE: 512 cnodes can't be created\n"
224
if {[wait_for_all_jobs $file_in] != 0} {
134
proc run_bgl_test { } {
135
global psets num_nodes
137
set 32node_block_cnt 16
138
set 128node_block_cnt 8
139
set 512node_block_cnt 16
140
set 1knode_block_cnt 8
141
set 4knode_block_cnt 8
142
set 8knode_block_cnt 4
143
set 16knode_block_cnt 4
144
set 32knode_block_cnt 4
147
incr started [run_batch_jobs 32 $32node_block_cnt]
150
incr started [run_batch_jobs 128 $128node_block_cnt]
151
incr started [run_batch_jobs 512 $512node_block_cnt]
153
if {$num_nodes >= 1024} {
154
incr started [run_batch_jobs 1k $1knode_block_cnt]
155
if {$num_nodes >= 4096} {
156
incr started [run_batch_jobs 4k $4knode_block_cnt]
157
if {$num_nodes >= 8192} {
158
incr started [run_batch_jobs 8k $8knode_block_cnt]
159
if {$num_nodes >= 16384} {
160
incr started [run_batch_jobs 16k $16knode_block_cnt]
161
if {$num_nodes >= 32768} {
162
incr started [run_batch_jobs 32k $1knode_block_cnt]
167
incr started [run_batch_jobs 1k $1knode_block_cnt]
170
incr started [run_batch_jobs 512 $512node_block_cnt]
172
incr started [run_batch_jobs 128 $128node_block_cnt]
175
incr started [run_batch_jobs 32 $32node_block_cnt]
178
incr started [run_batch_jobs 512 $512node_block_cnt]
184
proc run_bgp_test { } {
185
global psets num_nodes
187
set 16node_block_cnt 32
188
set 32node_block_cnt 16
189
set 64node_block_cnt 8
190
set 128node_block_cnt 8
191
set 256node_block_cnt 8
192
set 512node_block_cnt 16
193
set 1knode_block_cnt 8
194
set 4knode_block_cnt 8
195
set 8knode_block_cnt 4
196
set 16knode_block_cnt 4
197
set 32knode_block_cnt 4
201
incr started [run_batch_jobs 16 $16node_block_cnt]
205
incr started [run_batch_jobs 32 $32node_block_cnt]
208
incr started [run_batch_jobs 64 $64node_block_cnt]
211
incr started [run_batch_jobs 128 $128node_block_cnt]
212
incr started [run_batch_jobs 256 $256node_block_cnt]
213
incr started [run_batch_jobs 512 $512node_block_cnt]
215
if {$num_nodes >= 1024} {
216
incr started [run_batch_jobs 1k $1knode_block_cnt]
217
if {$num_nodes >= 4096} {
218
incr started [run_batch_jobs 4k $4knode_block_cnt]
219
if {$num_nodes >= 8192} {
220
incr started [run_batch_jobs 8k $8knode_block_cnt]
221
if {$num_nodes >= 16384} {
222
incr started [run_batch_jobs 16k $16knode_block_cnt]
223
if {$num_nodes >= 32768} {
224
incr started [run_batch_jobs 32k $1knode_block_cnt]
229
incr started [run_batch_jobs 1k $1knode_block_cnt]
232
incr started [run_batch_jobs 512 $512node_block_cnt]
233
incr started [run_batch_jobs 256 $256node_block_cnt]
234
incr started [run_batch_jobs 128 $128node_block_cnt]
236
incr started [run_batch_jobs 64 $64node_block_cnt]
240
incr started [run_batch_jobs 32 $32node_block_cnt]
244
incr started [run_batch_jobs 16 $16node_block_cnt]
247
incr started [run_batch_jobs 512 $512node_block_cnt]
255
print_header $test_id
257
if {[test_bluegene] == 0} {
258
send_user "\nWARNING: This test is only compatable with bluegene systems\n"
262
if {[string compare [get_bluegene_layout] Dynamic]} {
263
send_user "\nWARNING: This test is only compatable with dynamic bluegene systems\n"
267
set psets [get_bluegene_psets]
270
send_user "\nFAILURE: No psets are set on this system\n"
274
set num_nodes [expr [get_node_cnt] * [get_bluegene_cnodes_per_mp]]
275
if {$num_nodes == 0} {
276
send_user "\nFAILURE: No nodes are found on this system\n"
280
set procs_per_cnode [get_bluegene_procs_per_cnode]
282
if {$procs_per_cnode == 0} {
283
send_user "\nFAILURE: Couldn't determine procs per cnode\n"
287
set type [get_bluegene_type]
290
send_user "\nFAILURE: No bluegene type found \n"
295
make_bash_script $file_in "$bin_sleep $sleep_time"
296
set timeout [expr $max_job_delay + $sleep_time]
299
if {![string compare $type "P"]} {
300
set started [run_bgp_test]
301
} elseif {![string compare $type "L"]} {
302
set started [run_bgl_test]
304
send_user "\nFAILURE: unknown bluegene system type '$type'\n";
309
send_user "\nFAILURE: No jobs were started\n";
313
send_user "Started $started jobs\n"
315
if {[wait_for_all_jobs] != 0} {
225
316
send_user "\nFAILURE: some submitted jobs failed to terminate\n"