<div dir="ltr"><div><br></div><div>Dear Slurm Users,<br><br>I am facing issues with the following combinations of OpenMPI and SLURM. I was wondering if you have faced something similar and can help me.<br><br>OpenMPI-3.1.6 and slurm 19.05.5<br>OpenMPI-4.0.3 and slurm 19.05.5<br><br>I have the OpenMPI packages configured with "--with-slurm" option and installed. <br><br><b>  Configure command line: '--prefix=/home/manumachu/openmpi-4.0.3/OPENMPI_INSTALL' '--with-slurm'<br>                 MCA ess: slurm (MCA v2.1.0, API v3.0.0, Component v4.0.3)<br>                 MCA plm: slurm (MCA v2.1.0, API v2.0.0, Component v4.0.3)<br>                 MCA ras: slurm (MCA v2.1.0, API v2.0.0, Component v4.0.3)<br>              MCA schizo: slurm (MCA v2.1.0, API v1.0.0, Component v4.0.3)<br></b><br>I am executing the sbatch script shown below:<br><br><b>#!/bin/bash<br>#SBATCH --account=xxxxx</b></div><div><b>#SBATCH --job-name=ompi4<br>#SBATCH --output=ompi4.out<br>#SBATCH --error=ompi4.err</b><br><b>#SBATCH --ntasks-per-node=1<br>#SBATCH --time=00:30:00<br>export PATH=/scratch/manumachu/openmpi-4.0.3/OPENMPI_INSTALL/bin:$PATH<br>export LD_LIBRARY_PATH=/scratch/manumachu/openmpi-4.0.3/OPENMPI_INSTALL/lib:$LD_LIBRARY_PATH<br>mpirun -np 4 ./bcast_timing -t 1<br></b><br>No matter what option I give to mpirun, I get the following error:<br><b>mpirun: Error: unknown option "-np"</b></div><div><b><br></b></div><div>I have used mpiexec also but received the same errors.<br><br>To summarize, I am not able to call mpirun from a SLURM script. I can use srun but I have no idea how to pass MCA parameters I usually give to mpirun such as, "<i>--map-by ppr:1:socket -mca pml ob1 -mca btl tcp,self -mca coll_tuned_use_dynamic_rules 1</i>".<br><br>Thank you for your help.<br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Kind Regards</div><div>Dr. Ravi Reddy Manumachu</div><div style="font-size:12.8px">Research Fellow,<span style="font-size:12.8px"> School of Computer Science, </span><span style="font-size:12.8px">University College Dublin</span></div><div><a href="https://scholar.google.com/citations?user=QlvhSSUAAAAJ&hl=en" style="font-size:12.8px" target="_blank">Ravi Manumachu on Google Scholar</a><span style="font-size:12.8px">, <a href="https://www.researchgate.net/profile/Ravi_Manumachu" target="_blank">ResearchGate</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>