Advanced MPI scheduling: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 10: Line 10:


<!--T:2-->
<!--T:2-->
If you want more control over how your job is allocated, then SchedMD's
If you want more control over how your job is allocated, then [https://slurm.schedmd.com/mc_support.html SchedMD's
page on [https://slurm.schedmd.com/mc_support.html multicore support] is a good  
page on multicore support] is a good place to begin. It describes how many of the options to the  
place to begin. It describes how many of the options to the  
[https://slurm.schedmd.com/sbatch.html <code>sbatch</code>]
[https://slurm.schedmd.com/sbatch.html <code>sbatch</code>]
command interact to constrain the placement of processes.
command interact to constrain the placement of processes.


<!--T:3-->
<!--T:3-->
You may find this discussion of [https://slurm.schedmd.com/faq.html#cpu_count What exactly is considered a CPU?] in SLURM to be useful.
You may find this discussion of [https://slurm.schedmd.com/faq.html#cpu_count What exactly is considered a CPU?] in Slurm to be useful.


=== Examples of common MPI scenarios === <!--T:4-->
=== Examples of common MPI scenarios === <!--T:4-->


==== Few cores, any nodes ==== <!--T:18-->
==== Few cores, any number of nodes ==== <!--T:18-->
In addition to the time limit needed for ''any'' Slurm job, an MPI job requires that you specify how many MPI processes Slurm should start. The simplest way to do this is with <code>--ntasks</code>. Since the default memory allocation of 256MB per core is often insufficient, you may also wish to specify how much memory is needed. Using <code>--ntasks</code> you cannot know in advance how many cores will reside on each node, so you should request memory with <code>--mem-per-cpu</code>. For example:
In addition to the time limit needed for ''any'' Slurm job, an MPI job requires that you specify how many MPI processes Slurm should start. The simplest way to do this is with <code>--ntasks</code>. Since the default memory allocation of 256MB per core is often insufficient, you may also wish to specify how much memory is needed. Using <code>--ntasks</code> you cannot know in advance how many cores will reside on each node, so you should request memory with <code>--mem-per-cpu</code>. For example:


Line 90: Line 89:
* [https://slurm.schedmd.com/sbatch.html sbatch] documentation
* [https://slurm.schedmd.com/sbatch.html sbatch] documentation
* [https://slurm.schedmd.com/srun.html srun] documentation
* [https://slurm.schedmd.com/srun.html srun] documentation
* [https://www.open-mpi.org/faq/?category=slurm Open MPI] and SLURM
* [https://www.open-mpi.org/faq/?category=slurm Open MPI] and Slurm


<!--T:16-->
<!--T:16-->
[[Category:SLURM]]
[[Category:SLURM]]
</translate>
</translate>
rsnt_translations
56,420

edits

Navigation menu