From 1e44fd309402c1ae099be6d5371100e7a3dd4c75 Mon Sep 17 00:00:00 2001 From: Guido Cossu Date: Sat, 26 Nov 2016 18:30:53 +0000 Subject: [PATCH] Added some details on the mpi flags for Cray machines --- README.md | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bfe558a2..c47a257c 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ The following options can be use with the `--enable-comms=` option to target dif | `mpi3l[-auto]` | MPI communications using MPI 3 shared memory and leader model | | `shmem ` | Cray SHMEM communications | -For the MPI interfaces the optional `-auto` suffix instructs the `configure` scripts to determine all the necessary compilation and linking flags. This is done by extracting the informations from the MPI wrapper specified in the environment variable `MPICXX` (if not specified `configure` will scan though a list of default names). +For the MPI interfaces the optional `-auto` suffix instructs the `configure` scripts to determine all the necessary compilation and linking flags. This is done by extracting the informations from the MPI wrapper specified in the environment variable `MPICXX` (if not specified `configure` will scan though a list of default names). The `-auto` suffix is not supported by the Cray environment wrapper scripts. Use the standard versions instead. ### Possible SIMD types diff --git a/configure.ac b/configure.ac index 90764cb7..4225bac5 100644 --- a/configure.ac +++ b/configure.ac @@ -290,7 +290,7 @@ esac case ${ac_COMMS} in *-auto) LX_FIND_MPI - if test "x$have_CXX_mpi" = 'xno'; then AC_MSG_ERROR(["MPI not found"]); fi + if test "x$have_CXX_mpi" = 'xno'; then AC_MSG_ERROR(["The configure could not find the MPI compilation flags. N.B. The -auto mode is not supported by Cray wrappers. Use the non -auto version in this case."]); fi AM_CXXFLAGS="$MPI_CXXFLAGS $AM_CXXFLAGS" AM_CFLAGS="$MPI_CFLAGS $AM_CFLAGS" AM_LDFLAGS="`echo $MPI_CXXLDFLAGS | sed -E 's/-l@<:@^ @:>@+//g'` $AM_LDFLAGS"