File tree 2 files changed +1
-6
lines changed 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ if(MLIR_ENABLE_ROCM_CONVERSIONS)
106
106
"Building mlir with ROCm support requires the AMDGPU backend" )
107
107
endif ()
108
108
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" )
110
110
target_compile_definitions (obj.MLIRGPUTransforms
111
111
PRIVATE
112
112
__DEFAULT_ROCM_PATH__="${DEFAULT_ROCM_PATH} "
Original file line number Diff line number Diff line change @@ -123,11 +123,6 @@ add_mlir_dialect_library(MLIRROCDLTarget
123
123
)
124
124
125
125
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
-
131
126
if (DEFINED ROCM_PATH)
132
127
set (DEFAULT_ROCM_PATH "${ROCM_PATH} " CACHE PATH "Fallback path to search for ROCm installs" )
133
128
elseif (DEFINED ENV{ROCM_PATH})
You can’t perform that action at this time.
0 commit comments