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
7dca0c90
Unverified
Commit
7dca0c90
authored
Nov 13, 2025
by
Pleaplusone
Committed by
GitHub
Nov 13, 2025
Browse files
[BugFix][ROCm] Fix `get_cu_count` missing variable error (#28608)
Signed-off-by:
ganyi
<
ygan@amd.com
>
parent
1a0b157a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/utils/platform_utils.py
vllm/utils/platform_utils.py
+1
-1
No files found.
vllm/utils/platform_utils.py
View file @
7dca0c90
...
@@ -24,7 +24,7 @@ def xpu_is_initialized() -> bool:
...
@@ -24,7 +24,7 @@ def xpu_is_initialized() -> bool:
return
torch
.
xpu
.
is_initialized
()
return
torch
.
xpu
.
is_initialized
()
def
get_cu_count
(
cls
,
device_id
:
int
=
0
)
->
int
:
def
get_cu_count
(
device_id
:
int
=
0
)
->
int
:
"""Returns the total number of compute units (CU) on single GPU."""
"""Returns the total number of compute units (CU) on single GPU."""
return
torch
.
cuda
.
get_device_properties
(
device_id
).
multi_processor_count
return
torch
.
cuda
.
get_device_properties
(
device_id
).
multi_processor_count
...
...
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