diff --git a/mlir/lib/Dialect/GPU/CMakeLists.txt b/mlir/lib/Dialect/GPU/CMakeLists.txt index 51cfa2216e0c1..61ab298ebfb98 100644 --- a/mlir/lib/Dialect/GPU/CMakeLists.txt +++ b/mlir/lib/Dialect/GPU/CMakeLists.txt @@ -110,7 +110,6 @@ if(MLIR_ENABLE_ROCM_CONVERSIONS) target_compile_definitions(obj.MLIRGPUTransforms PRIVATE __DEFAULT_ROCM_PATH__="${DEFAULT_ROCM_PATH}" - MLIR_GPU_TO_HSACO_PASS_ENABLE=1 ) target_link_libraries(MLIRGPUTransforms diff --git a/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp b/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp index eee7a680f5b3b..2af898b567742 100644 --- a/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp +++ b/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp @@ -11,11 +11,12 @@ // //===----------------------------------------------------------------------===// +#include "mlir/Config/mlir-config.h" #include "mlir/Dialect/GPU/Transforms/Passes.h" #include "mlir/IR/Location.h" #include "mlir/IR/MLIRContext.h" -#if MLIR_GPU_TO_HSACO_PASS_ENABLE +#if MLIR_ENABLE_ROCM_CONVERSIONS #include "mlir/ExecutionEngine/OptUtils.h" #include "mlir/Pass/Pass.h" #include "mlir/Support/FileUtilities.h" @@ -454,6 +455,6 @@ std::unique_ptr mlir::createGpuSerializeToHsacoPass(StringRef triple, optLevel); } -#else // MLIR_GPU_TO_HSACO_PASS_ENABLE +#else // MLIR_ENABLE_ROCM_CONVERSIONS void mlir::registerGpuSerializeToHsacoPass() {} -#endif // MLIR_GPU_TO_HSACO_PASS_ENABLE +#endif // MLIR_ENABLE_ROCM_CONVERSIONS