Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6eaf9302
Unverified
Commit
6eaf9302
authored
Mar 05, 2025
by
youkaichao
Committed by
GitHub
Mar 04, 2025
Browse files
[platforms] improve rocm debugging info (#14257)
parent
72c62eae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/platforms/__init__.py
vllm/platforms/__init__.py
+3
-0
No files found.
vllm/platforms/__init__.py
View file @
6eaf9302
...
@@ -106,6 +106,9 @@ def rocm_platform_plugin() -> Optional[str]:
...
@@ -106,6 +106,9 @@ def rocm_platform_plugin() -> Optional[str]:
if
len
(
amdsmi
.
amdsmi_get_processor_handles
())
>
0
:
if
len
(
amdsmi
.
amdsmi_get_processor_handles
())
>
0
:
is_rocm
=
True
is_rocm
=
True
logger
.
debug
(
"Confirmed ROCm platform is available."
)
logger
.
debug
(
"Confirmed ROCm platform is available."
)
else
:
logger
.
debug
(
"ROCm platform is not available because"
" no GPU is found."
)
finally
:
finally
:
amdsmi
.
amdsmi_shut_down
()
amdsmi
.
amdsmi_shut_down
()
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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