[ROCm] Use device name in the warning (#15838)

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
Gregory Shtrasberg 2025-04-01 03:10:48 -04:00 committed by GitHub
parent 4a9ce1784c
commit c7e63aa4d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1530,7 +1530,7 @@ class EngineArgs:
# Non-CUDA is supported on V1, but off by default for now.
not_cuda = not current_platform.is_cuda()
if not_cuda and _warn_or_fallback( # noqa: SIM103
current_platform.device_type):
current_platform.device_name):
return False
#############################################################