Skip to content

Commit

Permalink
Revert "[mlir][gpu][transforms] Only depend on ExecutionEngine if MLI…
Browse files Browse the repository at this point in the history
…R_ENABLE_CUDA_RUNNER is true"

This reverts commit 68b7d3f.
The mlir-nvidia bot is broken.
  • Loading branch information
joker-eph committed Jul 25, 2023
1 parent bf5581d commit 0710290
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions mlir/test/lib/Dialect/GPU/CMakeLists.txt
Expand Up @@ -8,6 +8,7 @@ set(LIBS
MLIRAnalysis
MLIRArithDialect
MLIRBuiltinToLLVMIRTranslation
MLIRExecutionEngine
MLIRFuncDialect
MLIRGPUDialect
MLIRGPUToGPURuntimeTransforms
Expand All @@ -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
Expand All @@ -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()

0 comments on commit 0710290

Please sign in to comment.