File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ set(TORCH_API_TEST_SOURCES
8
8
${TORCH_API_TEST_DIR} /expanding-array.cpp
9
9
${TORCH_API_TEST_DIR} /fft.cpp
10
10
${TORCH_API_TEST_DIR} /functional.cpp
11
+ ${TORCH_API_TEST_DIR} /init.cpp
12
+ ${TORCH_API_TEST_DIR} /integration.cpp
11
13
${TORCH_API_TEST_DIR} /jit.cpp
12
14
${TORCH_API_TEST_DIR} /memory.cpp
13
15
${TORCH_API_TEST_DIR} /meta_tensor.cpp
@@ -40,15 +42,10 @@ set(TORCH_API_TEST_SOURCES
40
42
${TORCH_API_TEST_DIR} /grad_mode.cpp
41
43
${TORCH_API_TEST_DIR} /operations.cpp
42
44
)
43
- if (USE_CUDA)
45
+ if (USE_CUDA OR USE_ROCM )
44
46
list (APPEND TORCH_API_TEST_SOURCES ${TORCH_API_TEST_DIR} /parallel.cpp)
45
47
endif ()
46
48
47
- if (NOT USE_ROCM)
48
- list (APPEND TORCH_API_TEST_SOURCES ${TORCH_API_TEST_DIR} /init.cpp)
49
- list (APPEND TORCH_API_TEST_SOURCES ${TORCH_API_TEST_DIR} /integration.cpp)
50
- endif ()
51
-
52
49
add_executable (test_api ${TORCH_API_TEST_SOURCES} )
53
50
target_include_directories (test_api PRIVATE ${ATen_CPU_INCLUDE} )
54
51
target_link_libraries (test_api PRIVATE torch gtest)
You can’t perform that action at this time.
0 commit comments