Skip to content
Snippets Groups Projects
Commit 226285c5 authored by Danny Auble's avatar Danny Auble
Browse files

Fix test for Cray systems

parent 80b1a037
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,14 @@ set file_out "test$test_id.output"
set job_id 0
set sleep_secs 10
# On a cray system we might only be able to run 2 tasks per node so force it
# to always assume this is the case.
if { [test_cray] } {
set extra "export SLURM_TASKS_PER_NODE=2"
} else {
set extra ""
}
print_header $test_id
......@@ -62,6 +70,7 @@ if {[test_launch_poe]} {
#
exec $bin_rm -f $file_in $file_in2 $file_out
make_bash_script $file_in "
$extra
echo tasks_per_node=\$SLURM_TASKS_PER_NODE
inx=0
while \[ \$inx -lt \$SLURM_TASKS_PER_NODE \]
......@@ -153,6 +162,7 @@ if {$exit_code == 0} {
#
exec $bin_rm -f $file_in $file_out
make_bash_script $file_in "
$extra
inx=0
while \[ \$inx -lt \$SLURM_TASKS_PER_NODE \]
do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment