Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
b3086e07
Commit
b3086e07
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
change salloc and sbatch options from --tasks to --ntasks
parent
0c642efe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/test15.24
+1
-1
1 addition, 1 deletion
testsuite/expect/test15.24
testsuite/expect/test17.32
+1
-1
1 addition, 1 deletion
testsuite/expect/test17.32
testsuite/expect/test17.6
+3
-3
3 additions, 3 deletions
testsuite/expect/test17.6
with
5 additions
and
5 deletions
testsuite/expect/test15.24
+
1
−
1
View file @
b3086e07
...
@@ -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 --
n
tasks=$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)
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test17.32
+
1
−
1
View file @
b3086e07
...
@@ -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 --
n
tasks=$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)
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test17.6
+
3
−
3
View file @
b3086e07
#!/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 (--
n
tasks
# 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 --
n
tasks=$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 --
n
tasks=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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment