Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
7549ff33
Commit
7549ff33
authored
Apr 01, 2025
by
fishingfly
Browse files
fix: refine backend error message to include ROCM_HOME
Signed-off-by:
fishingfly
<
zhoyuzf@163.com
>
parent
f142f4df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
setup.py
setup.py
+9
-9
No files found.
setup.py
View file @
7549ff33
...
@@ -316,7 +316,7 @@ class CMakeBuild(BuildExtension):
...
@@ -316,7 +316,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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment