Skip to content

Commit e746d29

Browse files
committed
More complete search for MPIEXEC under e.g. SLURM
1 parent 49ae754 commit e746d29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prerequisites/install-functions/build_opencoarrays.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build_opencoarrays()
2323
# Set CC to the MPI implementation's gcc command...
2424
CC="${MPICC_show[0]}"
2525
# try to find mpiexec
26-
MPIEXEC_CANDIDATES=($(find "${MPICC%/*}" -name 'mpiexec' -o -name 'mpirun'))
26+
MPIEXEC_CANDIDATES=($(find "${MPICC%/*}" -name 'mpiexec' -o -name 'mpirun' -o -name 'lamexec' -o -name 'srun'))
2727
if ! ((${#MPIEXEC_CANDIDATES[@]} >= 1)); then
2828
emergency "Could not find a suitable \`mpiexec\` in directory containing mpi wrappers (${MPICC%/*})"
2929
else

0 commit comments

Comments
 (0)