Skip to content
Snippets Groups Projects
Commit f4887c74 authored by Morris Jette's avatar Morris Jette
Browse files

Disable tests with configuration SelectTypeParameters=CR_ONE_TASK_PER_CORE

See commit 37161057
Bug 3124.
parent ab077f64
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,11 @@ set ncpus ""
print_header $test_id
if {[test_select_type_params "CR_ONE_TASK_PER_CORE"]} {
send_user "\nWARNING: This test is incompatible SelectTypeParameters=CR_ONE_TASK_PER_CORE\n"
exit 0
}
log_user 0
spawn $sinfo -N -h -p $partition -t idle -o "%c"
expect {
......@@ -68,7 +73,7 @@ if {$matches < $needed_nodes} {
set nodes 0
set timeout $max_job_delay
set srun_pid [spawn $srun -p $partition -N1-2 --use-min-nodes -n$ncpus $bin_printenv SLURM_NNODES]
set srun_pid [spawn $srun -p $partition -N1-2 --use-min-nodes -n$ncpus --ntasks-per-thread=1--cpu-bind=thread $bin_printenv SLURM_NNODES]
expect {
-re "($number)" {
set nodes $expect_out(1,string)
......
......@@ -39,6 +39,11 @@ set ncpus ""
print_header $test_id
if {[test_select_type_params "CR_ONE_TASK_PER_CORE"]} {
send_user "\nWARNING: This test is incompatible SelectTypeParameters=CR_ONE_TASK_PER_CORE\n"
exit 0
}
log_user 0
spawn $sinfo -N -h -p $partition -t idle -o "%c"
expect {
......@@ -68,7 +73,7 @@ if {$matches < $needed_nodes} {
set job_id 0
set timeout $max_job_delay
set salloc_pid [spawn $salloc -p $partition -N1-2 --use-min-nodes -n$ncpus $bin_printenv SLURM_NNODES]
set salloc_pid [spawn $salloc -p $partition -N1-2 --use-min-nodes -n$ncpus --hint=nomultithread $bin_printenv SLURM_NNODES]
#set salloc_pid [spawn $salloc -p $partition -N1-2 -n$ncpus $bin_printenv SLURM_NNODES]
expect {
-re "Granted job allocation ($number)" {
......
......@@ -43,6 +43,11 @@ set ncpus ""
print_header $test_id
if {[test_select_type_params "CR_ONE_TASK_PER_CORE"]} {
send_user "\nWARNING: This test is incompatible SelectTypeParameters=CR_ONE_TASK_PER_CORE\n"
exit 0
}
log_user 0
spawn $sinfo -N -h -p $partition -t idle -o "%c"
expect {
......@@ -82,7 +87,7 @@ make_bash_script $file_in "
set cwd "[$bin_pwd]"
make_bash_script $file_script "
$sbatch -p $partition -N1-2 --use-min-nodes -n$ncpus --output=$file_out --error=$file_err $cwd/$file_in
$sbatch -p $partition -N1-2 --use-min-nodes -n$ncpus --hint=nomultithread --output=$file_out --error=$file_err $cwd/$file_in
exit 0
"
......
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