Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 2dcab95

Browse files
author
Sven Verdoolaege
committed
do not build tc_caffe2_test_harness when WITH_CUDA=0 is set
tc_caffe2_test_harness depends on CUDA: In file included from /home/skimo/git/c2isl/tc/c2/tc_op.h:24:0, from /home/skimo/git/c2isl/test/caffe2/test_harness.h:31, from /home/skimo/git/c2isl/test/caffe2/test_harness.cc:16: /home/skimo/git/c2isl/tc/core/cuda/cuda.h:19:2: error: #error "CUDA_HOME must be defined" #error "CUDA_HOME must be defined" ^~~~~ /home/skimo/git/c2isl/tc/core/cuda/cuda.h:23:2: error: #error "CUB_HOME must be defined" #error "CUB_HOME must be defined" ^~~~~ This issue was introduced in 66a10a0 (Start extracting a tc_caffe2_test_harness library, Sat May 5 20:47:42 2018 -0600).
1 parent 72e0703 commit 2dcab95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/caffe2/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
add_library(tc_caffe2_test_harness SHARED test_harness.cc)
2-
target_link_libraries(tc_caffe2_test_harness tc_c2)
3-
install(TARGETS tc_caffe2_test_harness DESTINATION lib)
4-
51
if (WITH_CUDA)
2+
add_library(tc_caffe2_test_harness SHARED test_harness.cc)
3+
target_link_libraries(tc_caffe2_test_harness tc_c2)
4+
install(TARGETS tc_caffe2_test_harness DESTINATION lib)
5+
66
add_subdirectory(cuda)
77
endif()

0 commit comments

Comments
 (0)