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
c4e1a207
Commit
c4e1a207
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add env vars and fix some formatting problems.
parent
3d4fead9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/man/man1/sbatch.1
+59
-4
59 additions, 4 deletions
doc/man/man1/sbatch.1
with
59 additions
and
4 deletions
doc/man/man1/sbatch.1
+
59
−
4
View file @
c4e1a207
.\" $Id: salloc.1 8570 2006-07-13 21:12:58Z morrone $
.TH "sbatch" "1" "SLURM 1.2" "September 2006" "SLURM Commands"
.TH "sbatch" "1" "SLURM 1.2" "July 2006" "SLURM Commands"
.SH "NAME"
.SH "NAME"
.LP
.LP
sbatch \- Submit a batch script to SLURM.
sbatch \- Submit a batch script to SLURM.
...
@@ -52,7 +51,7 @@ different users. The value may be changed after job submission using the
...
@@ -52,7 +51,7 @@ different users. The value may be changed after job submission using the
scontrol command.
scontrol command.
.TP
.TP
\fB\-s\fR, \fB\-\-share
d
\fR
\fB\-s\fR, \fB\-\-share\fR
The job allocation can share nodes with other running jobs. (The default
The job allocation can share nodes with other running jobs. (The default
shared/exclusive behaviour depends on system configuration.)
shared/exclusive behaviour depends on system configuration.)
This may result the allocation being granted sooner than if the \-\-shared
This may result the allocation being granted sooner than if the \-\-shared
...
@@ -281,6 +280,11 @@ Setting this option will prevent system administrators from being able
...
@@ -281,6 +280,11 @@ Setting this option will prevent system administrators from being able
to restart the job (for example, after a scheduled downtime).
to restart the job (for example, after a scheduled downtime).
When a job is requeued, the batch script is initiated from its beginning.
When a job is requeued, the batch script is initiated from its beginning.
.TP
\fB\-\-jobid\fR
Allocate resources as the specified job id.
NOTE: Only valid for user root.
.TP
.TP
\fB\-q\fR, \fB\-\-quiet\fR
\fB\-q\fR, \fB\-\-quiet\fR
Suppress informational messages from sbatch. Errors will still be displayed.
Suppress informational messages from sbatch. Errors will still be displayed.
...
@@ -306,7 +310,7 @@ Display version information and exit.
...
@@ -306,7 +310,7 @@ Display version information and exit.
The following options support Blue Gene systems, but may be
The following options support Blue Gene systems, but may be
applicable to other systems as well.
applicable to other systems as well.
.TP
.TP
\fB\-g\fR, fB\-\-geometry\fR[=]<\fIXxYxZ\fR>
\fB\-g\fR,
\
fB\-\-geometry\fR[=]<\fIXxYxZ\fR>
Specify the geometry requirements for the job. The three numbers
Specify the geometry requirements for the job. The three numbers
represent the required geometry giving dimensions in the X, Y and
represent the required geometry giving dimensions in the X, Y and
Z directions. For example "\-\-geometry=2x3x4", specifies a block
Z directions. For example "\-\-geometry=2x3x4", specifies a block
...
@@ -330,33 +334,84 @@ By default the specified geometry can rotate in three dimensions.
...
@@ -330,33 +334,84 @@ By default the specified geometry can rotate in three dimensions.
.SH "ENVIRONMENT VARIABLES"
.SH "ENVIRONMENT VARIABLES"
.LP
.LP
.TP
\fBSBATCH_ACCOUNT\fR
Same as \fB\-\-account\fR.
.TP
\fBSBATCH_CONN_TYPE\fR
Same as \fB\-\-conn\-type\fR.
.TP
\fBSBATCH_DEBUG\fR
Same as \fB\-v\fR or \fB\-\-verbose\fR.
.TP
\fBSBATCH_GEOMETRY\fR
Same as \fB\-g\fR or \fB\-\-geometry\fR.
.TP
\fBSBATCH_IMMEDIATE\fR
Same as \fB-I\fR or \fB\-\-immediate\fR.
.TP
\fBSBATCH_JOBID\fR
Same as \fB\-\-jobid\fR.
.TP
\fBSBATCH_NO_REQUEUE\fR
Same as \fB\-\-no\-requeue\fR.
.TP
\fBSBATCH_NO_ROTATE\fR
Same as \fB\-R\fR or \fB\-\-no\-rotate\fR.
.TP
\fBSBATCH_PARTITION\fR
Same as \fB\-p\fR or \fB\-\-partition\fR.
.TP
\fBSBATCH_TIMELIMIT\fR
Same as \fB\-t\fR or \fB\-\-time\fR.
.SH "EXAMPLES"
.SH "EXAMPLES"
.LP
.LP
Specify a batch script by filename on the command line:
Specify a batch script by filename on the command line:
.IP
.IP
$ cat myscript
$ cat myscript
.br
#!/bin/sh
#!/bin/sh
.br
slaunch hostname |sort
slaunch hostname |sort
.br
$ sbatch \-N4 myscript
$ sbatch \-N4 myscript
.br
salloc: Granted job allocation 65537
salloc: Granted job allocation 65537
.br
$ cat slurm\-65537.out
$ cat slurm\-65537.out
.br
host1
host1
.br
host2
host2
.br
host3
host3
.br
host4
host4
.LP
.LP
Pass a batch script to sbatch on standard input:
Pass a batch script to sbatch on standard input:
.IP
.IP
morrone:~$ sbatch \-N4 <<EOF
morrone:~$ sbatch \-N4 <<EOF
.br
> #!/bin/sh
> #!/bin/sh
.br
> slaunch hostname |sort
> slaunch hostname |sort
.br
> EOF
> EOF
.br
sbatch: Submitted batch job 65541
sbatch: Submitted batch job 65541
.br
$ cat slurm\-65541.out
$ cat slurm\-65541.out
.br
host1
host1
.br
host2
host2
.br
host3
host3
.br
host4
host4
.SH "SEE ALSO"
.SH "SEE ALSO"
.LP
.LP
sinfo(1), slaunch(1), sattach(1), salloc(1), squeue(1), scancel(1), scontrol(1), slurm.conf(5), sched_setaffinity(2), numa(3)
sinfo(1), slaunch(1), sattach(1), salloc(1), squeue(1), scancel(1), scontrol(1), slurm.conf(5), sched_setaffinity(2), numa(3)
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