Skip to content

Commit 2a58a76

Browse files
committed
Fix CMake options.
1 parent 959dc50 commit 2a58a76

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

mlir/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ endif()
140140
set(MLIR_ENABLE_CUDA_RUNNER 0 CACHE BOOL "Enable building the MLIR CUDA runner")
141141
set(MLIR_ENABLE_ROCM_RUNNER 0 CACHE BOOL "Enable building the MLIR ROCm runner")
142142
set(MLIR_ENABLE_SYCL_RUNNER 0 CACHE BOOL "Enable building the MLIR SYCL runner")
143+
set(MLIR_ENABLE_LEVELZERO_RUNNER 0 CACHE BOOL "Enable building the MLIR LevelZero runner")
143144
set(MLIR_ENABLE_SPIRV_CPU_RUNNER 0 CACHE BOOL "Enable building the MLIR SPIR-V cpu runner")
144145
set(MLIR_ENABLE_VULKAN_RUNNER 0 CACHE BOOL "Enable building the MLIR Vulkan runner")
145146
set(MLIR_ENABLE_NVPTXCOMPILER 0 CACHE BOOL

mlir/lib/ExecutionEngine/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ if(LLVM_ENABLE_PIC)
426426
set_property(TARGET mlir_sycl_runtime APPEND PROPERTY BUILD_RPATH "${LevelZeroRuntime_LIBRARIES_DIR}" "${SyclRuntime_LIBRARIES_DIR}")
427427
endif()
428428

429-
if(MLIR_ENABLE_LEVEL_ZERO_RUNNER)
429+
if(MLIR_ENABLE_LEVELZERO_RUNNER)
430430
find_package(LevelZeroRuntime)
431431

432432
if(NOT LevelZeroRuntime_FOUND)

mlir/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ if(MLIR_ENABLE_SYCL_RUNNER)
167167
list(APPEND MLIR_TEST_DEPENDS mlir_sycl_runtime)
168168
endif()
169169

170+
if(MLIR_ENABLE_LEVELZERO_RUNNER)
171+
list(APPEND MLIR_TEST_DEPENDS mlir_levelzero_runtime)
172+
endif()
173+
170174
if (MLIR_RUN_ARM_SME_TESTS AND NOT ARM_SME_ABI_ROUTINES_SHLIB)
171175
list(APPEND MLIR_TEST_DEPENDS mlir_arm_sme_abi_stubs)
172176
endif()

mlir/test/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ def find_real_python_interpreter():
224224
if config.enable_sycl_runner:
225225
tools.extend([add_runtime("mlir_sycl_runtime")])
226226

227+
if config.enable_levelzero_runner:
228+
tools.extend([add_runtime("mlir_levelzero_runtime")])
229+
227230
if config.enable_spirv_cpu_runner:
228231
tools.extend([add_runtime("mlir_spirv_cpu_runtime")])
229232

mlir/test/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ config.enable_rocm_runner = @MLIR_ENABLE_ROCM_RUNNER@
3434
config.gpu_compilation_format = "@MLIR_GPU_COMPILATION_TEST_FORMAT@"
3535
config.rocm_test_chipset = "@ROCM_TEST_CHIPSET@"
3636
config.enable_sycl_runner = @MLIR_ENABLE_SYCL_RUNNER@
37+
config.enable_levelzero_runner = @MLIR_ENABLE_LEVELZERO_RUNNER@
3738
config.enable_spirv_cpu_runner = @MLIR_ENABLE_SPIRV_CPU_RUNNER@
3839
config.enable_vulkan_runner = @MLIR_ENABLE_VULKAN_RUNNER@
3940
config.enable_bindings_python = @MLIR_ENABLE_BINDINGS_PYTHON@

0 commit comments

Comments
 (0)