@@ -22,13 +22,6 @@ add_executable(test_basic test_basic.cc)
22
22
add_test (test_basic test_basic )
23
23
target_link_libraries (test_basic ${GOOGLE_LIBS} ${ISL_LIBRARIES} ${ATEN_LIBRARIES} )
24
24
25
- if (WITH_CUDA )
26
- add_executable (test_basic_gpu test_basic_gpu.cc )
27
- set_target_properties (test_basic_gpu PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_CUDA_SDK} " )
28
- add_test (test_basic_gpu test_basic_gpu )
29
- target_link_libraries (test_basic_gpu ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARIES} ${CUDA_NVRTC_LIBRARIES} ${GOOGLE_LIBS} )
30
- endif ()
31
-
32
25
################################################################################
33
26
# Core library only tests
34
27
################################################################################
@@ -44,42 +37,6 @@ foreach(i ${CORE_TEST_FILES})
44
37
target_link_libraries (${i} ${GOOGLE_LIBS} tc_core )
45
38
endforeach ()
46
39
47
- ################################################################################
48
- # Core GPU library tests
49
- ################################################################################
50
- if (WITH_CUDA )
51
- add_executable (test_autotuner_utility test_autotuner_utility.cc )
52
- add_test (test_autotuner_utility test_autotuner_utility )
53
- target_link_libraries (test_autotuner_utility ${GOOGLE_LIBS} ${ATEN_LIBRARIES} tc_cuda tc_autotuner )
54
- endif ()
55
-
56
-
57
- ################################################################################
58
- # ATen execution based test
59
- ################################################################################
60
- if (WITH_CUDA )
61
- set (ATEN_TEST_FILES
62
- test_autotuner
63
- test_compilation_cache
64
- test_execution_engine
65
- test_execution_engine_cache
66
- test_execution_engine_db
67
- test_tc_mapper
68
- test_tc_mapper_bugs
69
- test_corner_cases
70
- )
71
- foreach (i ${ATEN_TEST_FILES} )
72
- add_executable (${i} ${i} .cc )
73
- add_test (${i} ${i} )
74
- target_link_libraries (
75
- ${i}
76
-
77
- ${GOOGLE_LIBS}
78
- ${ATEN_LIBRARIES}
79
- tc_autotuner )
80
- endforeach ()
81
- endif ()
82
-
83
40
################################################################################
84
41
# CPP mapper tests, execution should use ATen C++ API
85
42
################################################################################
@@ -118,24 +75,6 @@ if (WITH_TAPIR)
118
75
tc_core_cpu tc_lang )
119
76
endif ()
120
77
121
- ################################################################################
122
- # TensorComprehensions tests
123
- # No real need for NVCC if we only use NVRTC
124
- # cuda_add_executable(test_matmul test_matmul.cu OPTIONS -std=c++11)
125
- ################################################################################
126
-
127
- if (WITH_CAFFE2 AND WITH_CUDA )
128
- set (TEST_FILES
129
- test_caffe2
130
- )
131
-
132
- foreach (i ${TEST_FILES} )
133
- add_executable (${i} ${i} .cc )
134
- add_test (${i} ${i} )
135
- target_link_libraries (${i} ${GOOGLE_LIBS} pthread tc_c2 )
136
- endforeach ()
137
- endif ()
138
-
139
78
################################################################################
140
79
# Lang tests
141
80
################################################################################
@@ -150,3 +89,7 @@ foreach(i ${TEST_TC_FILES})
150
89
add_test (${i} ${i} )
151
90
target_link_libraries (${i} ${GOOGLE_LIBS} pthread tc_lang )
152
91
endforeach ()
92
+
93
+ if (WITH_CUDA )
94
+ add_subdirectory (cuda )
95
+ endif ()
0 commit comments