Skip to content

Commit 284fc69

Browse files
Copilotnjzjz
andcommitted
Remove unused MPIX_Query_cuda_support from api_cc CMakeLists.txt
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
1 parent e28bb86 commit 284fc69

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

source/api_cc/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ set_target_properties(
5151
target_compile_definitions(${libname} PRIVATE TF_PRIVATE)
5252
find_package(MPI)
5353
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-
endif()
6454
target_link_libraries(${libname} PRIVATE MPI::MPI_CXX)
6555
target_compile_definitions(${libname} PRIVATE USE_MPI)
6656
endif()

0 commit comments

Comments
 (0)