This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-6
lines changed Expand file tree Collapse file tree 2 files changed +33
-6
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ add_library(
14
14
halide2isl.cc
15
15
halide_utils.cc
16
16
17
- cpu/cpu_tc_executor.cc
18
-
19
- polyhedral/codegen_cuda.cc
20
- polyhedral/codegen_llvm.cc
21
- polyhedral/llvm_jit.cc
17
+ polyhedral/codegen.cc
22
18
polyhedral/mapped_scop.cc
23
19
polyhedral/mapping_types.cc
24
20
polyhedral/memory_promotion.cc
@@ -53,6 +49,35 @@ install(
53
49
DESTINATION lib
54
50
)
55
51
52
+ add_library (
53
+ tc_core_cpu
54
+
55
+ SHARED
56
+
57
+ cpu/cpu_tc_executor.cc
58
+
59
+ polyhedral/codegen_llvm.cc
60
+ polyhedral/llvm_jit.cc
61
+ )
62
+ target_include_directories (tc_core_cpu PUBLIC ${PROJECT_SOURCE_DIR} /include ${LLVM_INCLUDE_DIRS} )
63
+ target_link_libraries (
64
+ tc_core_cpu
65
+
66
+ ${HALIDE_LIBRARIES}
67
+ ${ISL_LIBRARIES}
68
+ -lLLVM
69
+
70
+ tc_lang
71
+ tc_version
72
+ tc_proto
73
+ )
74
+ install (
75
+ TARGETS
76
+ tc_core_cpu
77
+
78
+ DESTINATION lib
79
+ )
80
+
56
81
if (WITH_CUDA )
57
82
find_library (CUDA_NVRTC_LIBRARIES nvrtc
58
83
PATHS ${CUDA_TOOLKIT_ROOT_DIR}
@@ -67,6 +92,8 @@ if (WITH_CUDA)
67
92
cuda/cuda_compilation_cache.cc
68
93
cuda/cuda_rtc.cc
69
94
cuda/cuda_tc_executor.cc
95
+
96
+ polyhedral/codegen_cuda.cc
70
97
)
71
98
target_include_directories (tc_core_cuda PUBLIC ${PROJECT_SOURCE_DIR} /include ${LLVM_INCLUDE_DIRS} )
72
99
target_link_libraries (
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ set(CORE_TEST_FILES
97
97
foreach (i ${CORE_TEST_FILES} )
98
98
add_executable (${i} ${i} .cc )
99
99
add_test (${i} ${i} )
100
- target_link_libraries (${i} ${GOOGLE_LIBS} tc_core tc_lang )
100
+ target_link_libraries (${i} ${GOOGLE_LIBS} tc_core tc_core_cpu tc_lang )
101
101
# target_compile_options(${i} PUBLIC -fsanitize=address)
102
102
# set(CMAKE_EXE_LINKER_FLAGS -fsanitize=address)
103
103
endforeach ()
You can’t perform that action at this time.
0 commit comments