From f78f6d27044ca187d4d823d8bb6dccd024b3e239 Mon Sep 17 00:00:00 2001 From: dchigarev Date: Thu, 1 Aug 2024 16:07:59 +0000 Subject: [PATCH] fix tests Signed-off-by: dchigarev --- cmake/imex.cmake | 2 +- test/mlir/test/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/imex.cmake b/cmake/imex.cmake index 370b55a2a..f44453a28 100644 --- a/cmake/imex.cmake +++ b/cmake/imex.cmake @@ -7,7 +7,7 @@ if (NOT DEFINED IMEX_INCLUDES) # TODO: Change to main https://github.com/oneapi-src/oneDNN.git when all the # required functionality is merged. gc_fetch_content(imex 496b240093b5e132b60c5ee69878300fe69be300 https://github.com/Menooker/mlir-extensions - CMAKE_ARGS "-DMLIR_DIR=${MLIR_DIR};-DIMEX_CHECK_LLVM_VERSION=ON" + CMAKE_ARGS "-DMLIR_DIR=${MLIR_DIR};-DIMEX_CHECK_LLVM_VERSION=ON;-DIMEX_ENABLE_L0_RUNTIME=${IMEX_ENABLE_L0_RUNTIME}" ) set(IMEX_INCLUDES diff --git a/test/mlir/test/CMakeLists.txt b/test/mlir/test/CMakeLists.txt index 7ac5a89c6..48091830a 100644 --- a/test/mlir/test/CMakeLists.txt +++ b/test/mlir/test/CMakeLists.txt @@ -26,6 +26,9 @@ set(GC_OPT_TEST_DEPENDS if(GC_USE_GPU) include(imex) list(APPEND GC_OPT_TEST_DEPENDS mlir_opencl_runtime) + if (IMEX_ENABLE_L0_RUNTIME) + list(APPEND GC_OPT_TEST_DEPENDS level-zero-runtime) + endif() endif() if(GC_ENABLE_BINDINGS_PYTHON)