Skip to content

Commit 08d3142

Browse files
committed
Improve build msgs & cache doc for failed images
- Don't throw warning when missing
1 parent 531134c commit 08d3142

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/mpi/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ foreach(symbol ${NEEDED_SYMBOLS})
110110
CHECK_SYMBOL_EXISTS(${symbol} "${MPI_HEADERS}" HAVE_${symbol})
111111
if(NOT HAVE_${symbol})
112112
message( STATUS "\${HAVE_${symbol}} = ${HAVE_${symbol}}")
113-
message( WARNING "Disabling Failed Image support due to lack of support in the current MPI implementation.")
113+
message( WARNING
114+
"Note: Failed Images not supported by the current MPI implementation! (Needs MPIX experimental features--as of MPI3)")
114115
set(MPI_HAS_FAULT_TOL_EXT NO)
115116
break() # no need to keep looking
116117
endif()
@@ -122,7 +123,11 @@ set(CMAKE_REQUIRED_LIBRARIES ${old_cmake_required_libraries})
122123
if(MPI_HAS_FAULT_TOL_EXT) # AND (NOT openmpi))
123124
option(CAF_ENABLE_FAILED_IMAGES "Enable failed images support" TRUE)
124125
else()
125-
set(CAF_ENABLE_FAILED_IMAGES FALSE CACHE BOOL "Enable failed images support" FORCE)
126+
set(CAF_ENABLE_FAILED_IMAGES FALSE
127+
CACHE
128+
BOOL
129+
"Enable failed images support (no support in the selected MPI implementation)"
130+
FORCE)
126131
endif()
127132

128133
if(CAF_ENABLE_FAILED_IMAGES)

0 commit comments

Comments
 (0)