2021-05-18 14:03:33 +08:00
|
|
|
diff --git a/tensorpipe/test/CMakeLists.txt b/tensorpipe/test/CMakeLists.txt
|
2022-05-18 14:57:56 +08:00
|
|
|
index 53e8643..c49ada6 100644
|
2021-05-18 14:03:33 +08:00
|
|
|
--- a/tensorpipe/test/CMakeLists.txt
|
|
|
|
+++ b/tensorpipe/test/CMakeLists.txt
|
2022-05-18 14:57:56 +08:00
|
|
|
@@ -93,25 +93,24 @@ if(TP_USE_CUDA)
|
2021-05-18 14:03:33 +08:00
|
|
|
channel/cuda_ipc/cuda_ipc_test.cc
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
-
|
2022-05-18 14:57:56 +08:00
|
|
|
- list(APPEND TP_TEST_SRCS
|
2021-05-18 14:03:33 +08:00
|
|
|
- channel/cuda_gdr/cuda_gdr_test.cc
|
|
|
|
- )
|
2022-05-18 14:57:56 +08:00
|
|
|
-
|
2021-05-18 14:03:33 +08:00
|
|
|
+ if(TP_ENABLE_CUDA_GDR)
|
2022-05-18 14:57:56 +08:00
|
|
|
+ list(APPEND TP_TEST_SRCS
|
2021-05-18 14:03:33 +08:00
|
|
|
+ channel/cuda_gdr/cuda_gdr_test.cc
|
|
|
|
+ )
|
|
|
|
+ endif()
|
2022-05-18 14:57:56 +08:00
|
|
|
cuda_add_library(tensorpipe_cuda_kernel channel/kernel.cu)
|
|
|
|
list(APPEND TP_TEST_LINK_LIBRARIES tensorpipe_cuda_kernel)
|
|
|
|
|
|
|
|
list(APPEND TP_TEST_LINK_LIBRARIES tensorpipe_cuda)
|
2021-05-18 14:03:33 +08:00
|
|
|
endif()
|
|
|
|
|
2022-05-18 14:57:56 +08:00
|
|
|
-add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/googletest
|
|
|
|
- ${PROJECT_BINARY_DIR}/third_party/googletest EXCLUDE_FROM_ALL)
|
|
|
|
+find_package(GTest CONFIG REQUIRED)
|
|
|
|
|
|
|
|
list(APPEND TP_TEST_LINK_LIBRARIES
|
|
|
|
tensorpipe
|
|
|
|
- uv::uv
|
|
|
|
- gmock
|
|
|
|
- gtest_main)
|
|
|
|
+ unofficial::libuv::libuv
|
|
|
|
+ GTest::gmock
|
|
|
|
+ GTest::gtest_main)
|
|
|
|
|
|
|
|
add_executable(tensorpipe_test ${TP_TEST_SRCS})
|
2021-05-18 14:03:33 +08:00
|
|
|
|