[XPU] Use custom op collective behavior (#41354)

Signed-off-by: Chaojun,Zhang <chaojun.zhang@intel.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Chaojun Zhang
2026-05-19 14:14:59 +08:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Kunshang Ji
parent 9fd8487d2f
commit f1e3f0e6d6
+4
View File
@@ -409,3 +409,7 @@ class XPUPlatform(Platform):
@classmethod
def num_compute_units(cls, device_id: int = 0) -> int:
return torch.xpu.get_device_properties(device_id).max_compute_units
@classmethod
def use_custom_op_collectives(cls) -> bool:
return True