We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e28bb86 commit 284fc69Copy full SHA for 284fc69
1 file changed
source/api_cc/CMakeLists.txt
@@ -51,16 +51,6 @@ set_target_properties(
51
target_compile_definitions(${libname} PRIVATE TF_PRIVATE)
52
find_package(MPI)
53
if(MPI_FOUND)
54
- include(CheckCXXSymbolExists)
55
- set(CMAKE_REQUIRED_INCLUDES ${MPI_CXX_INCLUDE_DIRS})
56
- set(CMAKE_REQUIRED_LIBRARIES ${MPI_CXX_LIBRARIES})
57
- check_cxx_symbol_exists(MPIX_Query_cuda_support "mpi.h" CUDA_AWARE)
58
- if(NOT CUDA_AWARE)
59
- check_cxx_symbol_exists(MPIX_Query_cuda_support "mpi.h;mpi-ext.h" OMP_CUDA)
60
- if(NOT OMP_CUDA)
61
- target_compile_definitions(${libname} PRIVATE NO_CUDA_AWARE)
62
- endif()
63
64
target_link_libraries(${libname} PRIVATE MPI::MPI_CXX)
65
target_compile_definitions(${libname} PRIVATE USE_MPI)
66
endif()
0 commit comments