Both sides previous revision Previous revision Next revision | Previous revision |
software:openmpi:caviness [2020-04-23 12:25] – anita | software:openmpi:caviness [2021-04-27 16:21] (current) – external edit 127.0.0.1 |
---|
| |
| |
IT provides three job script (batch) templates for various **mpi** parallel environments located in ''/opt/templates/slurm/generic/mpi'' on Caviness: | IT provides three job script (batch) template variants for **mpi** parallel environments located in ''/opt/shared/templates/slurm/generic/mpi'' on Caviness: |
| |
- Open MPI: **//openmpi.qs//** | - Open MPI: **//openmpi.qs//** |
* Found in ''/opt/templates/slurm/generic/mpi/openmpi''. | * Found in ''/opt/shared/templates/slurm/generic/mpi/openmpi''. |
- Mpich: **//mpich.qs//** | - Mpich: **//mpich.qs//** |
* Found in ''/opt/templates/slurm/generic/mpi/mpich''. | * Found in ''/opt/shared/templates/slurm/generic/mpi/mpich''. |
- Generic: **//mpi.qs//** | - Generic: **//mpi.qs//** |
* Found in ''/opt/templates/slurm/generic/mpi/generic''. | * Found in ''/opt/shared/templates/slurm/generic/mpi/generic''. |
| |
In general, we suggest using the Open MPI job script variant, however | In general, we suggest using the Open MPI job script template, however |
* Each job script template is intended for a program using multiple processor cores/threads on one or more nodes. Each variant should be used with Open MPI or another MPI library that is tightly-integrated with Slurm. | * Each job script template is intended for a program using multiple processor cores/threads on one or more nodes. Each variant should be used with Open MPI or another MPI library that is tightly-integrated with Slurm. |
* Sections of each script that can/should be edited are delimited by a ''[EDIT]'' tag. All Slurm job options are denoted by a line that starts with ''#SBATCH'' followed by flags that would otherwise be passed on the command line. Slurm job options can easily be disabled in a script by inserting a space in the prefix, e.g. ''# SLURM'' and reenabled by deleting that space. | * Sections of each script that can/should be edited are delimited by a ''[EDIT]'' tag. All Slurm job options are denoted by a line that starts with ''#SBATCH'' followed by flags that would otherwise be passed on the command line. Slurm job options can easily be disabled in a script by inserting a space in the prefix, e.g. ''# SLURM'' and reenabled by deleting that space. |
You may copy and customize these templates to provide the best performance when running your MPI applications, however you should keep the job script complete (i.e. do not delete lines or sections in the job script template). See [[:abstract:caviness:runjobs:runjobs|Running Applications]] on Caviness for details about resources. | You may copy and customize these templates to provide the best performance when running your MPI applications, however you should keep the job script complete (i.e. do not delete lines or sections in the job script template). See [[:abstract:caviness:runjobs:runjobs|Running Applications]] on Caviness for details about resources. |
| |
<note tip>It is a good idea to periodically check in ''/opt/templates/slurm/generic/mpi'' for changes in existing templates, or the addition of new templates, designed to provide the best performance on Caviness.</note> | <note tip>It is a good idea to periodically check in ''/opt/shared/templates/slurm/generic/mpi'' for changes in existing templates, or the addition of new templates, designed to provide the best performance on Caviness.</note> |
| |