diff options
| author | Ingo Müller <ingomueller@google.com> | 2024-03-05 15:37:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 15:37:14 +0100 |
| commit | f3be8427288a8888a0343e5f9ea7bf6573897ae5 (patch) | |
| tree | fcd24f349b43eab1c654bd84bee395f140588aea /mlir/CMakeLists.txt | |
| parent | b2c16e7ff48a41eead168e1b95ed0c7813dd3b9c (diff) | |
[mlir] Expose MLIR_ROCM_CONVERSIONS_ENABLED in mlir-config.h. (#83977)
This is a follow up of #83004, which made the same change for
`MLIR_CUDA_CONVERSIONS_ENABLED`. As the previous PR, this PR commit
exposes mentioned CMake variable through `mlir-config.h` and uses the
macro that is introduced with the same name. This replaces the macro
`MLIR_ROCM_CONVERSIONS_ENABLED`, which the CMake files previously
defined manually.
Diffstat (limited to 'mlir/CMakeLists.txt')
| -rw-r--r-- | mlir/CMakeLists.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index 070609c94a3b..e37cb465b919 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -119,7 +119,6 @@ if ("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD) else() set(MLIR_ENABLE_ROCM_CONVERSIONS 0) endif() -add_definitions(-DMLIR_ROCM_CONVERSIONS_ENABLED=${MLIR_ENABLE_ROCM_CONVERSIONS}) set(MLIR_ENABLE_CUDA_RUNNER 0 CACHE BOOL "Enable building the mlir CUDA runner") set(MLIR_ENABLE_ROCM_RUNNER 0 CACHE BOOL "Enable building the mlir ROCm runner") |
