aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/CMakeLists.txt
diff options
context:
space:
mode:
authorSang Ik Lee <sang.ik.lee@intel.com>2023-12-05 13:55:24 -0800
committerGitHub <noreply@github.com>2023-12-05 16:55:24 -0500
commit7fc792cba7663b2aa54f259515319d74a5625be0 (patch)
tree003801c6819f6cf9272edc026dd38049926dbabb /mlir/test/CMakeLists.txt
parent2284771fa02fa3c75b07fafc37c559cf6deddd59 (diff)
downloadllvm-7fc792cba7663b2aa54f259515319d74a5625be0.zip
llvm-7fc792cba7663b2aa54f259515319d74a5625be0.tar.gz
llvm-7fc792cba7663b2aa54f259515319d74a5625be0.tar.bz2
[MLIR] Enable GPU Dialect to SYCL runtime integration (#71430)
GPU Dialect lowering to SYCL runtime is driven by spirv.target_env attached to gpu.module. As a result of this, spirv.target_env remains as an input to LLVMIR Translation. A SPIRVToLLVMIRTranslation without any actual translation is added to avoid an unregistered error in mlir-cpu-runner. SelectObjectAttr.cpp is updated to 1) Pass binary size argument to getModuleLoadFn 2) Pass parameter count to getKernelLaunchFn This change does not impact CUDA and ROCM usage since both mlir_cuda_runtime and mlir_rocm_runtime are already updated to accept and ignore the extra arguments.
Diffstat (limited to 'mlir/test/CMakeLists.txt')
-rw-r--r--mlir/test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt
index ccb4a98..3f31216 100644
--- a/mlir/test/CMakeLists.txt
+++ b/mlir/test/CMakeLists.txt
@@ -142,6 +142,10 @@ if(MLIR_ENABLE_ROCM_RUNNER)
list(APPEND MLIR_TEST_DEPENDS mlir_rocm_runtime)
endif()
+if(MLIR_ENABLE_SYCL_RUNNER)
+ list(APPEND MLIR_TEST_DEPENDS mlir_sycl_runtime)
+endif()
+
if (MLIR_RUN_ARM_SME_TESTS AND NOT ARM_SME_ABI_ROUTINES_SHLIB)
list(APPEND MLIR_TEST_DEPENDS mlir_arm_sme_abi_stubs)
endif()