[Mlir-commits] [mlir] 0710290 - Revert "[mlir][gpu][transforms] Only depend on ExecutionEngine if MLIR_ENABLE_CUDA_RUNNER is true"
Mehdi Amini
llvmlistbot at llvm.org
Mon Jul 24 17:21:54 PDT 2023
Author: Mehdi Amini
Date: 2023-07-24T17:21:37-07:00
New Revision: 07102909c27195cb08cfccdaae2b934e46630fe5
URL: https://github.com/llvm/llvm-project/commit/07102909c27195cb08cfccdaae2b934e46630fe5
DIFF: https://github.com/llvm/llvm-project/commit/07102909c27195cb08cfccdaae2b934e46630fe5.diff
LOG: Revert "[mlir][gpu][transforms] Only depend on ExecutionEngine if MLIR_ENABLE_CUDA_RUNNER is true"
This reverts commit 68b7d3fffd7e8ebc40fdcb0acdcf2e88a93ea5c3.
The mlir-nvidia bot is broken.
Added:
Modified:
mlir/test/lib/Dialect/GPU/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/GPU/CMakeLists.txt b/mlir/test/lib/Dialect/GPU/CMakeLists.txt
index ad537be56d77c6..c972a8a8204689 100644
--- a/mlir/test/lib/Dialect/GPU/CMakeLists.txt
+++ b/mlir/test/lib/Dialect/GPU/CMakeLists.txt
@@ -8,6 +8,7 @@ set(LIBS
MLIRAnalysis
MLIRArithDialect
MLIRBuiltinToLLVMIRTranslation
+ MLIRExecutionEngine
MLIRFuncDialect
MLIRGPUDialect
MLIRGPUToGPURuntimeTransforms
@@ -34,22 +35,6 @@ set(LIBS
MLIRVectorToLLVM
)
-# This is how it is defined in mlir/lib/Dialect/GPU/CMakeLists.txt
-# We probably want something better project-wide
-if(MLIR_ENABLE_CUDA_RUNNER)
- # Enable gpu-to-cubin pass.
- target_compile_definitions(MLIRGPUTestPasses
- PRIVATE
- MLIR_GPU_TO_CUBIN_PASS_ENABLE=1
- )
-
- set(LIBS
- ${LIBS}
-
- MLIRExecutionEngine
- )
-endif()
-
add_mlir_library(MLIRGPUTestPasses
TestConvertGPUKernelToCubin.cpp
TestConvertGPUKernelToHsaco.cpp
@@ -62,3 +47,13 @@ add_mlir_library(MLIRGPUTestPasses
LINK_LIBS PUBLIC
${LIBS}
)
+
+# This is how it is defined in mlir/lib/Dialect/GPU/CMakeLists.txt
+# We probably want something better project-wide
+if(MLIR_ENABLE_CUDA_RUNNER)
+ # Enable gpu-to-cubin pass.
+ target_compile_definitions(MLIRGPUTestPasses
+ PRIVATE
+ MLIR_GPU_TO_CUBIN_PASS_ENABLE=1
+ )
+endif()
More information about the Mlir-commits
mailing list