@@ -5,10 +5,6 @@ if (MLIR_ENABLE_BINDINGS_PYTHON)
5
5
add_subdirectory (python)
6
6
endif ()
7
7
8
- if (MLIR_ENABLE_SPIRV_CPU_RUNNER)
9
- add_subdirectory (mlir-spirv-cpu-runner)
10
- endif ()
11
-
12
8
# Provide the MLIR CMake module dir so that the out of tree Standalone
13
9
# dialect and can add it to the module path.
14
10
set (MLIR_CMAKE_DIR
@@ -57,39 +53,12 @@ llvm_canonicalize_cmake_booleans(
57
53
MLIR_RUN_ARM_SVE_TESTS
58
54
)
59
55
60
- set (MLIR_RUNNER_UTILS "$<TARGET_FILE:mlir_runner_utils>" )
61
- set (MLIR_C_RUNNER_UTILS "$<TARGET_FILE:mlir_c_runner_utils>" )
62
- set (MLIR_ASYNC_RUNTIME "$<TARGET_FILE:mlir_async_runtime>" )
63
-
64
- if (MLIR_ENABLE_VULKAN_RUNNER)
65
- set (MLIR_VULKAN_RUNTIME_WRAPPERS "$<TARGET_FILE:vulkan-runtime-wrappers>" )
66
- endif ()
67
-
68
- if (MLIR_ENABLE_CUDA_RUNNER)
69
- set (MLIR_CUDA_RUNTIME "$<TARGET_FILE:mlir_cuda_runtime>" )
70
- endif ()
71
-
72
- if (MLIR_ENABLE_ROCM_RUNNER)
73
- set (MLIR_ROCM_RUNTIME "$<TARGET_FILE:mlir_rocm_runtime>" )
74
- endif ()
75
-
76
- if (MLIR_ENABLE_SPIRV_CPU_RUNNER)
77
- set (MLIR_TEST_SPRIV_CPU_RUNNER_C_WRAPPERS "$<TARGET_FILE:mlir_test_spirv_cpu_runner_c_wrappers>" )
78
- endif ()
79
-
80
- # configure below runs at configure time and does not support the use of generator expressions.
81
- # We therefore use it only to substitute the generator expressions above into the lit.site.cfg.py.in.
82
56
configure_lit_site_cfg(
83
57
${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in
84
- ${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg.py.in
58
+ ${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg.py
85
59
MAIN_CONFIG
86
60
${CMAKE_CURRENT_SOURCE_DIR} /lit.cfg.py
87
61
)
88
- # GENERATE runs at generation time (so at the beginning of the build) and substitutes the generator expressions
89
- # with the actual paths of the target binaries.
90
- file (GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg.py
91
- INPUT ${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg.py.in)
92
-
93
62
configure_lit_site_cfg(
94
63
${CMAKE_CURRENT_SOURCE_DIR} /Unit/lit.site.cfg.py.in
95
64
${CMAKE_CURRENT_BINARY_DIR} /Unit/lit.site.cfg.py
@@ -162,6 +131,7 @@ if(LLVM_BUILD_EXAMPLES)
162
131
endif ()
163
132
164
133
if (MLIR_ENABLE_SPIRV_CPU_RUNNER)
134
+ add_subdirectory (mlir-spirv-cpu-runner)
165
135
list (APPEND MLIR_TEST_DEPENDS
166
136
mlir-spirv-cpu-runner
167
137
mlir_test_spirv_cpu_runner_c_wrappers
0 commit comments