File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ script:
153
153
ln -fs "$(which g++-6)" "$HOME/bin/g++"
154
154
export PATH="$PATH:$HOME/bin"
155
155
./install.sh --yes-to-all -i "$HOME/opt/opencoarrays" -j 4 -f "$HOME/bin/gfortran" -c "$HOME/bin/gcc" -C "$HOME/bin/g++"
156
+ cd prerequisites/builds/opencoarrays/*
157
+ ../../../installations/cmake/*/bin/ctest --output-on-failure
158
+ cd -
156
159
else
157
160
mkdir cmake-build
158
161
cd cmake-build
Original file line number Diff line number Diff line change @@ -106,7 +106,18 @@ endif()
106
106
#----------------------------------------------------------------------------
107
107
# Find MPI and set some flags so that FC and CC can point to gfortran and gcc
108
108
#----------------------------------------------------------------------------
109
- find_package (MPI REQUIRED )
109
+
110
+ # If the user passes FC=mpif90 etc. check and prefer that location
111
+ get_filename_component ( FTN_MPI_DIR "${CMAKE_Fortran_COMPILER} "
112
+ REALPATH )
113
+ get_filename_component ( C_MPI_DIR "${CMAKE_C_COMPILER} "
114
+ REALPATH )
115
+ set ( MPI_HOME "${MPI_HOME} " "${FTN_MPI_DIR} /.." "${C_MPI_DIR} /.." )
116
+
117
+ # Check the install.sh defaut mpich installation directories
118
+ set ( MPI_HOME "${MPI_HOME} " "${CMAKE_SOURCE_DIR} /prerequisites/installations/mpich/3.1.4" "${CMAKE_SOURCE_DIR} /prerequisites/installations/mpich/*" )
119
+
120
+ find_package ( MPI REQUIRED )
110
121
111
122
set (CMAKE_C_COMPILE_FLAGS ${CMAKE_C_COMPILE_FLAGS} ${MPI_C_COMPILE_FLAGS} )
112
123
set (CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${MPI_C_LINK_FLAGS} )
You can’t perform that action at this time.
0 commit comments