Skip to content
Snippets Groups Projects
Commit b3086e07 authored by Moe Jette's avatar Moe Jette
Browse files

change salloc and sbatch options from --tasks to --ntasks

parent 0c642efe
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ make_bash_script $file_in " ...@@ -54,7 +54,7 @@ make_bash_script $file_in "
set timeout $max_job_delay set timeout $max_job_delay
set matches 0 set matches 0
set tasks 0 set tasks 0
spawn $salloc --tasks=$task_cnt --overcommit -N1 -t1 $file_in spawn $salloc --ntasks=$task_cnt --overcommit -N1 -t1 $file_in
expect { expect {
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
......
...@@ -51,7 +51,7 @@ make_bash_script $file_in " ...@@ -51,7 +51,7 @@ make_bash_script $file_in "
# #
# Submit a slurm job that will execute 'id' on 1 node and over task_cnt tasks # Submit a slurm job that will execute 'id' on 1 node and over task_cnt tasks
# #
spawn $sbatch --tasks=$task_cnt --overcommit -N1 --output=$file_out -t1 $file_in spawn $sbatch --ntasks=$task_cnt --overcommit -N1 --output=$file_out -t1 $file_in
expect { expect {
-re "Submitted batch job ($number)" { -re "Submitted batch job ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
......
#!/usr/bin/expect #!/usr/bin/expect
############################################################################ ############################################################################
# Purpose: Test of SLURM functionality # Purpose: Test of SLURM functionality
# Confirm that a job executes with the proper task count (--tasks # Confirm that a job executes with the proper task count (--ntasks
# option). # option).
# #
# Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR # Output: "TEST: #.#" followed by "SUCCESS" if test was successful, OR
...@@ -48,7 +48,7 @@ file delete $file_in $file_out ...@@ -48,7 +48,7 @@ file delete $file_in $file_out
make_bash_script $file_in "$srun $bin_id" make_bash_script $file_in "$srun $bin_id"
set job_id 0 set job_id 0
set no_run 0 set no_run 0
spawn $sbatch --tasks=$task_cnt --output=$file_out -t1 $file_in spawn $sbatch --ntasks=$task_cnt --output=$file_out -t1 $file_in
expect { expect {
-re "Submitted batch job ($number)" { -re "Submitted batch job ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
...@@ -107,7 +107,7 @@ file delete $file_in $file_out ...@@ -107,7 +107,7 @@ file delete $file_in $file_out
make_bash_script $file_in "$srun -n $task_cnt --overcommit $bin_id" make_bash_script $file_in "$srun -n $task_cnt --overcommit $bin_id"
set job_id 0 set job_id 0
set tasks 0 set tasks 0
spawn $sbatch --tasks=1 --output=$file_out -t1 $file_in spawn $sbatch --ntasks=1 --output=$file_out -t1 $file_in
expect { expect {
-re "Submitted batch job ($number)" { -re "Submitted batch job ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
......
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