Skip to content
Snippets Groups Projects
Commit 66dc03f9 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Get the basename of MPI_LAUNCH more carefully.

parent 595f8d17
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,9 @@ AS_IF([test x"$mpi" != xfalse],
[AC_MSG_WARN([check for MPI_LAUNCH disabled])],
[AC_PATH_PROGS([MPI_LAUNCH], [poe mpirun mpiexec], [true])
# set MP_HOSTFILE if we are using IBM PE
if test x"$(basename $ac_cv_path_MPI_LAUNCH)" == x"poe"; then
# $ac_cv_path_MPI_LAUNCH can be a command with arguments:
set dummy $ac_cv_path_MPI_LAUNCH
if test x"$(basename $[2])" == x"poe"; then
# create tmp hostfile and export envVar MP_HOSTFILE
# to enable compiler check for MPI compiler in case of IBM PE
if test -z "${MP_HOSTFILE}"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment