spack find mpiexec for impi (#42284)

This commit is contained in:
Robert Cohn
2024-01-25 11:21:50 -05:00
committed by GitHub
parent 2721b4c10d
commit 84568b3454
2 changed files with 6 additions and 0 deletions

View File

@@ -199,6 +199,8 @@ def initconfig_mpi_entries(self):
mpiexec = "/usr/bin/srun"
else:
mpiexec = os.path.join(spec["slurm"].prefix.bin, "srun")
elif hasattr(spec["mpi"].package, "mpiexec"):
mpiexec = spec["mpi"].package.mpiexec
else:
mpiexec = os.path.join(spec["mpi"].prefix.bin, "mpirun")
if not os.path.exists(mpiexec):