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
ed0f0bee
Commit
ed0f0bee
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Document how to use MPICH with srun
parent
f4473b98
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man1/srun.1
+48
-0
48 additions, 0 deletions
doc/man/man1/srun.1
src/srun/mpirun.elan
+22
-0
22 additions, 0 deletions
src/srun/mpirun.elan
with
70 additions
and
0 deletions
doc/man/man1/srun.1
+
48
−
0
View file @
ed0f0bee
...
...
@@ -458,6 +458,54 @@ total number of processes in the current job
SLURM_NODELIST
list of nodes that the slurm job is executing on.
.SH "MPI SUPPORT"
On computers with a Quadrics interconnect, \fBsrun\fR directly supports
the Quadrics version of MPI without modification. Applications build
using the Quadrics MPI library will communicate directly over the
Quadrics interconnect without any special \fBsrun\fR options.
Users may also use MPICH on any computer where that is available.
The \fBmpirun\fR command may need to be provided with information
on its command line identifying the resources to be used. The
installer of the MPICH software may configure it to perform these
steps automatically. At worst, you must specify two parameters:
.TP
\fB\-np SLURM_NPROCS\fR
number of processors to run on
.TP
\fB\-machinefile <machinefile>\fR
list of computers on which to execute. This list can be constructed
executing the command \fBsrun /bin/hostname\fR and writing its standard
output to the desired file. Execute \fBmpirun \-\-help\fR for more options.
.SH "EXAMPLES"
.eo
This example demonstrates how one executes a simple MPICH job
in the event that it has not been configurated to automatically
set the required parameters (again, this is the worst cases scenario).
We use \fBsrun\fR to build a list of machines (nodes) to be used by
\fBmpirun\fR in its required format. A sample command line and
the script to be executed follow.
.br
> cat my_script
#!/bin/csh
.br
srun /bin/hostname >nodes
.br
mpirun -np $SLURM_NPROCS -machinefile nodes /bin/hostname
.br
rm node_list
.br
> srun -N2 -n4 my_script
.ec
.eo
If MPICH is configured to directly use SLURM, the execute line is
the much simpler:
.br
> mpirun -np 4 /bin/hostname
.ec
.SH "BUGS"
If the number of processors per node allocated to a job is not evenly
divisible by the value of \fBcpus\-per\-node\fR, tasks may be initiated
...
...
This diff is collapsed.
Click to expand it.
src/srun/mpirun.elan
0 → 100644
+
22
−
0
View file @
ed0f0bee
#! /bin/sh
# Sample mpirun.<arch> file to be installed for direct use of srun
if
[
"
$MPIR_HOME
"
=
""
]
;
then
MPIR_HOME
=
#MPIR_HOME#
fi
if
[
"
$MPIR_HOME
"
=
"#""MPIR_HOME""#"
]
;
then
MPIR_HOME
=
`
pwd
`
/..
fi
if
[
"#MPIRUN_BIN#"
=
"#""MPIRUN_BIN""#"
]
;
then
MPIRUN_HOME
=
$MPIR_HOME
/bin
else
MPIRUN_HOME
=
$MPIR_HOME
/#MPIRUN_BIN#
fi
if
[
"
$argsset
"
=
""
]
;
then
.
$MPIRUN_HOME
/mpirun.args
argsset
=
1
fi
if
[
"
$debugger
"
!=
""
]
;
then
$Show
"totalview srun -a -n
$np
$progname
$cmdLineArgs
"
else
$Show
srun
-n
$np
$progname
$cmdLineArgs
fi
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