We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6d30a8 commit c374b03Copy full SHA for c374b03
prerequisites/install-functions/build_opencoarrays.sh
@@ -23,7 +23,8 @@ build_opencoarrays()
23
# Set CC to the MPI implementation's gcc command...
24
CC="${MPICC_show[0]}"
25
# try to find mpiexec
26
- MPIEXEC_CANDIDATES=($(find "${MPICC%/*}" -name 'mpiexec' -o -name 'mpirun' -o -name 'lamexec' -o -name 'srun'))
+ MPI_BIN_DIR="$(type -P "${MPICC}")"
27
+ MPIEXEC_CANDIDATES=($(find "${MPI_BIN_DIR%/*}" -name 'mpiexec' -o -name 'mpirun' -o -name 'lamexec' -o -name 'srun'))
28
if ! ((${#MPIEXEC_CANDIDATES[@]} >= 1)); then
29
emergency "Could not find a suitable \`mpiexec\` in directory containing mpi wrappers (${MPICC%/*})"
30
else
0 commit comments