File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 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)
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} "
Original file line number Diff line number Diff line change @@ -123,11 +123,6 @@ add_mlir_dialect_library(MLIRROCDLTarget
123123 )
124124
125125if (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})
You can’t perform that action at this time.
0 commit comments