[mpich-discuss] Slurm and MPICH configuration

Raffenetti, Ken raffenet at anl.gov
Mon Jan 3 20:41:47 CST 2022


Kurt,

No, using sbatch alone should not require special configuration. Only if your job scripts use srun, and not mpiexec/mpirun, should you need to use the Slurm PMI library.

Ken

On 1/3/22, 5:16 PM, "Mccall, Kurt E. (MSFC-EV41) via discuss" <discuss at mpich.org> wrote:

    Hi,

    The MPICH docs say the following about running under Slurm.  Is “sbatch” one of the launchers for which special configuration is necessary?

    Thanks,
    Kurt

    Q: How do I use MPICH with slurm?
    A: MPICH's default process manager, Hydra, internally detects and functions correctly with SLURM. No special configuration is needed. 
    However, if you want to use SLURM's launchers (such as srun), you will need to configure MPICH with: 
    ./configure --with-pmi=slurm --with-pm=no
    In addition, if your slurm installation is not in the default location, you will need to pass the actual installation location using: 
    ./configure --with-pmi=slurm --with-pm=no --with-slurm=[path_to_slurm_install]





More information about the discuss mailing list