[Mlir-commits] [mlir] [mlir][ExecutionEngine] Add LevelZeroRuntimeWrapper. (PR #151038)
Md Abdullah Shahneous Bari
llvmlistbot at llvm.org
Tue Aug 5 10:26:48 PDT 2025
================
@@ -404,9 +408,33 @@ if(LLVM_ENABLE_PIC)
${MLIR_INCLUDE_DIRS}
)
- target_link_libraries(mlir_sycl_runtime PRIVATE LevelZero::LevelZero SyclRuntime::SyclRuntime)
+ target_link_libraries(mlir_sycl_runtime PRIVATE LevelZeroRuntime::LevelZeroRuntime SyclRuntime::SyclRuntime)
+
+ set_property(TARGET mlir_sycl_runtime APPEND PROPERTY BUILD_RPATH "${LevelZeroRuntime_LIBRARIES_DIR}" "${SyclRuntime_LIBRARIES_DIR}")
+ endif()
+
+ if(MLIR_ENABLE_LEVELZERO_RUNNER)
+ add_mlir_library(mlir_levelzero_runtime
+ SHARED
+ LevelZeroRuntimeWrappers.cpp
+
+ EXCLUDE_FROM_LIBMLIR
+ )
+
+ # check_cxx_compiler_flag("-frtti" CXX_HAS_FRTTI_FLAG)
+
+ # if(NOT CXX_HAS_FRTTI_FLAG)
+ # message(FATAL_ERROR "CXX compiler does not accept flag -frtti")
+ # endif()
----------------
mshahneo wrote:
Thanks, @adam-smnk .
Removed.
https://github.com/llvm/llvm-project/pull/151038
More information about the Mlir-commits
mailing list