@@ -11,11 +11,6 @@ set(GTEST_LIBS gtest gtest_main)
11
11
12
12
set (GOOGLE_LIBS ${GFLAGS_LIBRARIES} ${GLOG_LIBRARIES} ${GTEST_LIBS} )
13
13
14
- add_library (tc_test INTERFACE )
15
- target_include_directories (tc_test INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
16
- target_link_libraries (tc_test INTERFACE ${GOOGLE_LIBS} )
17
-
18
-
19
14
################################################################################
20
15
# Finally, add tests
21
16
################################################################################
@@ -27,13 +22,6 @@ add_executable(test_basic test_basic.cc)
27
22
add_test (test_basic test_basic )
28
23
target_link_libraries (test_basic ${GOOGLE_LIBS} ${ISL_LIBRARIES} ${ATEN_LIBRARIES} )
29
24
30
- if (WITH_CUDA )
31
- add_executable (test_basic_gpu test_basic_gpu.cc )
32
- set_target_properties (test_basic_gpu PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_CUDA_SDK} " )
33
- add_test (test_basic_gpu test_basic_gpu )
34
- target_link_libraries (test_basic_gpu ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARIES} ${CUDA_NVRTC_LIBRARIES} ${GOOGLE_LIBS} )
35
- endif ()
36
-
37
25
################################################################################
38
26
# Core library only tests
39
27
################################################################################
@@ -49,42 +37,6 @@ foreach(i ${CORE_TEST_FILES})
49
37
target_link_libraries (${i} ${GOOGLE_LIBS} tc_core )
50
38
endforeach ()
51
39
52
- ################################################################################
53
- # Core GPU library tests
54
- ################################################################################
55
- if (WITH_CUDA )
56
- add_executable (test_autotuner_utility test_autotuner_utility.cc )
57
- add_test (test_autotuner_utility test_autotuner_utility )
58
- target_link_libraries (test_autotuner_utility ${GOOGLE_LIBS} ${ATEN_LIBRARIES} tc_cuda tc_autotuner )
59
- endif ()
60
-
61
-
62
- ################################################################################
63
- # ATen execution based test
64
- ################################################################################
65
- if (WITH_CUDA )
66
- set (ATEN_TEST_FILES
67
- test_autotuner
68
- test_compilation_cache
69
- test_execution_engine
70
- test_execution_engine_cache
71
- test_execution_engine_db
72
- test_tc_mapper
73
- test_tc_mapper_bugs
74
- test_corner_cases
75
- )
76
- foreach (i ${ATEN_TEST_FILES} )
77
- add_executable (${i} ${i} .cc )
78
- add_test (${i} ${i} )
79
- target_link_libraries (
80
- ${i}
81
-
82
- ${GOOGLE_LIBS}
83
- ${ATEN_LIBRARIES}
84
- tc_autotuner )
85
- endforeach ()
86
- endif ()
87
-
88
40
################################################################################
89
41
# CPP mapper tests, execution should use ATen C++ API
90
42
################################################################################
@@ -123,24 +75,6 @@ if (WITH_TAPIR)
123
75
tc_core_cpu tc_lang )
124
76
endif ()
125
77
126
- ################################################################################
127
- # TensorComprehensions tests
128
- # No real need for NVCC if we only use NVRTC
129
- # cuda_add_executable(test_matmul test_matmul.cu OPTIONS -std=c++11)
130
- ################################################################################
131
-
132
- if (WITH_CAFFE2 AND WITH_CUDA )
133
- set (TEST_FILES
134
- test_caffe2
135
- )
136
-
137
- foreach (i ${TEST_FILES} )
138
- add_executable (${i} ${i} .cc )
139
- add_test (${i} ${i} )
140
- target_link_libraries (${i} ${GOOGLE_LIBS} pthread tc_c2 )
141
- endforeach ()
142
- endif ()
143
-
144
78
################################################################################
145
79
# Lang tests
146
80
################################################################################
@@ -155,3 +89,7 @@ foreach(i ${TEST_TC_FILES})
155
89
add_test (${i} ${i} )
156
90
target_link_libraries (${i} ${GOOGLE_LIBS} pthread tc_lang )
157
91
endforeach ()
92
+
93
+ if (WITH_CUDA )
94
+ add_subdirectory (cuda )
95
+ endif ()
0 commit comments