Closed
Description
🐛 Describe the bug
Since the 2025.1 oneAPI upgrade (#151899), any attempt to use the Pytorch Profiler fails with RuntimeError: Fail to enable Kineto Profiler on XPU due to error code: 2. The detailed error message is: PTI_ERROR_NOT_IMPLEMENTED
.
To reproduce:
import torch
from torch.profiler import profile, ProfilerActivity
with profile(activities=[ProfilerActivity.XPU,], with_stack=True) as p:
x = torch.ones(10).xpu()
Versions
PyTorch version: 2.8.0.dev20250515+xpu