Skip to content

Commit 427561c

Browse files
committed
disable default rocm path
1 parent 9a04741 commit 427561c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

mlir/lib/Dialect/GPU/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ if(MLIR_ENABLE_ROCM_CONVERSIONS)
106106
"Building mlir with ROCm support requires the AMDGPU backend")
107107
endif()
108108

109-
set(DEFAULT_ROCM_PATH "/opt/rocm" CACHE PATH "Fallback path to search for ROCm installs")
109+
set(DEFAULT_ROCM_PATH "" CACHE PATH "Fallback path to search for ROCm installs")
110110
target_compile_definitions(obj.MLIRGPUTransforms
111111
PRIVATE
112112
__DEFAULT_ROCM_PATH__="${DEFAULT_ROCM_PATH}"

mlir/lib/Target/LLVM/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ add_mlir_dialect_library(MLIRROCDLTarget
123123
)
124124

125125
if(MLIR_ENABLE_ROCM_CONVERSIONS)
126-
if (NOT ("AMDGPU" IN_LIST LLVM_TARGETS_TO_BUILD))
127-
message(SEND_ERROR
128-
"Building mlir with ROCm support requires the AMDGPU backend")
129-
endif()
130-
131126
if (DEFINED ROCM_PATH)
132127
set(DEFAULT_ROCM_PATH "${ROCM_PATH}" CACHE PATH "Fallback path to search for ROCm installs")
133128
elseif(DEFINED ENV{ROCM_PATH})

0 commit comments

Comments
 (0)