mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 05:04:58 +08:00
[BugFix][ROCm] Fix get_cu_count missing variable error (#28608)
Signed-off-by: ganyi <ygan@amd.com>
This commit is contained in:
parent
1a0b157a2e
commit
7dca0c90cb
@ -24,7 +24,7 @@ def xpu_is_initialized() -> bool:
|
||||
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."""
|
||||
return torch.cuda.get_device_properties(device_id).multi_processor_count
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user