Skip to content

Commit

Permalink
updated with ofi/ucx search when fetch is turned on; removed ibv cond…
Browse files Browse the repository at this point in the history
…uit option
  • Loading branch information
ct-clmsn committed Oct 1, 2023
1 parent 54add8b commit bdb906b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ if(HPX_WITH_NETWORKING)
hpx_option(
HPX_WITH_PARCELPORT_GASNET_CONDUIT STRING
"Define which conduit to use for the gasnet parcelport" "udp"
STRINGS "smp;udp;mpi;ofi;ucx;ibv"
STRINGS "smp;udp;mpi;ofi;ucx"
)
endif()

Expand Down
41 changes: 37 additions & 4 deletions cmake/HPX_SetupGasnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,59 @@ macro(hpx_setup_gasnet)
if(NOT CMAKE_C_COMPILER)
message(
FATAL_ERROR
"HPX_WITH_FETCH_GASNET requires `-DCMAKE_C_COMPILER` to be set; CMAKE_C_COMPILER is currently unset.}"
"HPX_WITH_FETCH_GASNET requires `-DCMAKE_C_COMPILER` to be set; CMAKE_C_COMPILER is currently unset."
)
endif()
if(NOT CMAKE_CXX_COMPILER)
message(
FATAL_ERROR
"HPX_WITH_FETCH_GASNET requires `-DCMAKE_CXX_COMPILER` to be set; CMAKE_CXX_COMPILER is currently unset.}"
"HPX_WITH_FETCH_GASNET requires `-DCMAKE_CXX_COMPILER` to be set; CMAKE_CXX_COMPILER is currently unset."
)
endif()
if("${HPX_WITH_PARCELPORT_GASNET_CONDUIT}" STREQUAL "ofi" AND NOT OFI_DIR)
message(
FATAL_ERROR
"HPX_WITH_PARCELPORT_GASNET_CONDUIT=ofi AND HPX_WITH_FETCH_GASNET requires `-DUCX_DIR` to be set; UCX_DIR is currently unset.}"
"HPX_WITH_PARCELPORT_GASNET_CONDUIT=ofi AND HPX_WITH_FETCH_GASNET requires `-DOFI_DIR` to be set; OFI_DIR is currently unset."
)
elseif("${HPX_WITH_PARCELPORT_GASNET_CONDUIT}" STREQUAL "ofi")
pkg_search_module(
OFI
REQUIRED
IMPORTED_TARGET
GLOBAL
libfabric
libfabric-1.5
libfabric-1.7
libfabric-1.15
)
if(NOT OFI_FOUND)
message(
FATAL_ERROR
"libfabric 1.5, 1.7, or 1.15 was not found. Your `$PKG_CONFIG_PATH` or `-DOFI_DIR` may need to be updated"
)
endif()
endif()
if("${HPX_WITH_PARCELPORT_GASNET_CONDUIT}" STREQUAL "ucx" AND NOT UCX_DIR)
message(
FATAL_ERROR
"HPX_WITH_PARCELPORT_GASNET_CONDUIT=ucx AND HPX_WITH_FETCH_GASNET requires `-DUCX_DIR` to be set; UCX_DIR is currently unset.}"
"HPX_WITH_PARCELPORT_GASNET_CONDUIT=ucx AND HPX_WITH_FETCH_GASNET requires `-DUCX_DIR` to be set; UCX_DIR is currently unset."
)
elseif("${HPX_WITH_PARCELPORT_GASNET_CONDUIT}" STREQUAL "ucx")
pkg_search_module(
UCX
REQUIRED
IMPORTED_TARGET
GLOBAL
ucx
ucx-1.14.0
ucx-1.15.0
)
if(NOT UCX_FOUND)
message(
FATAL_ERROR
"UCX 1.14.0, or 1.15.0 was not found. Your `$PKG_CONFIG_PATH` or `-DUCX_DIR` may need to be updated"
)
endif()
endif()

message(STATUS "Fetching GASNET")
Expand Down

0 comments on commit bdb906b

Please sign in to comment.