[XPU][Feature] transparent sleep mode support for XPU platform (#37149)

Signed-off-by: Yan Ma <yan.ma@intel.com>
This commit is contained in:
Yan Ma
2026-06-07 10:45:31 +08:00
committed by GitHub
parent 810966453a
commit 3bb46975bd
10 changed files with 410 additions and 47 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ class Platform:
# for ROCm, but currently we don't have a way to detect the
# exact GPU model statelessly here. So we return True for
# all ROCm platforms for now.
return self._enum in (PlatformEnum.CUDA, PlatformEnum.ROCM)
return self._enum in (PlatformEnum.CUDA, PlatformEnum.ROCM, PlatformEnum.XPU)
def is_cumem_allocator_available(self) -> bool:
try: