Skip to content

Commit

Permalink
Require single shared memory backend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale committed Jan 8, 2025
1 parent 8e54817 commit 04b0153
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ cmake_dependent_option( UMPIRE_ENABLE_MPI "Build Umpire with MPI" On
cmake_dependent_option( UMPIRE_ENABLE_IPC_SHARED_MEMORY "Enable Host Shared Memory Resource" ${UMPIRE_ENABLE_MPI}
"NOT WIN32;NOT APPLE" Off )

cmake_dependent_option( UMPIRE_ENABLE_MPI3_SHARED_MEMORY "Enable MPI3 Shared Memory Resource" ${UMPIRE_ENABLE_MPI} "ENABLE_MPI" Off)
cmake_dependent_option( UMPIRE_ENABLE_MPI3_SHARED_MEMORY "Enable MPI3 Shared Memory Resource" Off "ENABLE_MPI" Off)

if (UMPIRE_ENABLE_IPC_SHARED_MEMORY AND UMPIRE_ENABLE_MPI3_SHARED_MEMORY)
message(FATAL_ERROR "Please select one shared memory option"
"(UMPIRE_ENABLE_IPC_SHARED_MEMORY OR UMPIRE_ENABLE_MPI3_SHARED_MEMORY)")
endif ()

cmake_dependent_option( UMPIRE_ENABLE_TESTS "Build Umpire tests" On
"ENABLE_TESTS" Off )
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ if (UMPIRE_ENABLE_IPC_SHARED_MEMORY)
umpire INTERFACE Threads::Threads -lrt
)
else()
message(STATUS "Host Shared Memory Disabled")
message(STATUS "IPC Shared Memory Disabled")
endif()

if (UMPIRE_ENABLE_CUDA OR UMPIRE_ENABLE_HIP)
Expand Down

0 comments on commit 04b0153

Please sign in to comment.