viable/strict/1789559427: Refine error message for torch.xpu.utilization() on Xe2+ (#197210)
- PyTorch: 1044 events in the last 90 days
- PyTorch: 1033th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789557997
What happened
Motivation When we enable pyzes tests on BMG in #196950 , we found zesDeviceEnumEngineGroups will fail with pyzes.ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS . This is different logic from the Xe arch. Level Zero Sysman will fix it in the next version. We handle this logic in PyTorch side temporarily. Additional Context With this fix: the test will be skipped; otherwise fail with RuntimeError: Can't get Level Zero Sysm…
Summary assembled by rule from the sources below