[XPU] Add xpu torch.compile support (#22609)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Kunshang Ji
2025-08-27 13:33:27 +08:00
committed by GitHub
parent d272415e57
commit fce10dbed5
8 changed files with 36 additions and 11 deletions

View File

@@ -411,6 +411,10 @@ class RocmPlatform(Platform):
supported_archs = ['gfx94', 'gfx95']
return any(gfx in gcn_arch for gfx in supported_archs)
@classmethod
def opaque_attention_op(cls) -> bool:
return True
@classmethod
def get_cu_count(cls, device_id: int = 0) -> int:
return torch.cuda.get_device_properties(