Skip to content

Commit

Permalink
Merge pull request #1866 from DARMA-tasking/1563-abort-when-mpi-guard…
Browse files Browse the repository at this point in the history
…s-are-violated-in-release-mode

#1563: cmake: enable MPI guards by default regardless of build
  • Loading branch information
lifflander authored Jul 1, 2022
2 parents 9f48ecd + 30a0e5d commit 5e59031
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmake/configure_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ else()
set(vt_feature_cmake_mimalloc "0")
endif()

string(TOLOWER ${CMAKE_BUILD_TYPE} LOWERCASE_CMAKE_BUILD_TYPE)
if (LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug")
option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" ON)
else()
option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" OFF)
endif()
option(vt_mpi_guards "Build VT with poison MPI calls: code invoked from VT callbacks cannot invoke MPI functions" ON)

if ((vt_mpi_guards OR vt_trace_only) AND PERL_FOUND)
message(STATUS "user MPI prevention guards enabled")
Expand Down

0 comments on commit 5e59031

Please sign in to comment.