Unverified Commit ec12429c authored by Atream's avatar Atream Committed by GitHub
Browse files

Merge pull request #1005 from fishingfly/improve/backend-error-msg

fix: refine backend error message to include ROCM_HOME
parents ac95b6c7 7549ff33
...@@ -317,7 +317,7 @@ class CMakeBuild(BuildExtension): ...@@ -317,7 +317,7 @@ class CMakeBuild(BuildExtension):
elif ROCM_HOME is not None: elif ROCM_HOME is not None:
cmake_args += ["-DKTRANSFORMERS_USE_ROCM=ON"] cmake_args += ["-DKTRANSFORMERS_USE_ROCM=ON"]
else: else:
raise ValueError("Unsupported backend: CUDA_HOME and MUSA_HOME are not set.") raise ValueError("Unsupported backend: CUDA_HOME, MUSA_HOME, and ROCM_HOME are not set.")
# log cmake_args # log cmake_args
print("CMake args:", cmake_args) print("CMake args:", cmake_args)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment