mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 08:09:12 +08:00
b34ae2aff5
* [tensorpipe] version update * update patch files * support find_package for https://github.com/microsoft/vcpkg/pull/17199 * [tensorpipe] update versions JSON * [tensorpipe] use mainstream PR * rename existing patch files * update versions JSON * [tensorpipe] update license * [tensorpipe] fix patch's SHA512 value * Add cuda-nvml-dev-11-6 to VMs. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
diff --git a/tensorpipe/test/CMakeLists.txt b/tensorpipe/test/CMakeLists.txt
|
|
index 53e8643..c49ada6 100644
|
|
--- a/tensorpipe/test/CMakeLists.txt
|
|
+++ b/tensorpipe/test/CMakeLists.txt
|
|
@@ -93,25 +93,24 @@ if(TP_USE_CUDA)
|
|
channel/cuda_ipc/cuda_ipc_test.cc
|
|
)
|
|
endif()
|
|
-
|
|
- list(APPEND TP_TEST_SRCS
|
|
- channel/cuda_gdr/cuda_gdr_test.cc
|
|
- )
|
|
-
|
|
+ if(TP_ENABLE_CUDA_GDR)
|
|
+ list(APPEND TP_TEST_SRCS
|
|
+ channel/cuda_gdr/cuda_gdr_test.cc
|
|
+ )
|
|
+ endif()
|
|
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)
|
|
endif()
|
|
|
|
-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})
|
|
|