[Profiler][HPU] Enable profiler.key_averages().table() for HPU devices (#150770)

Fixes #150769

Pull Request resolved: https://github.com/pytorch/pytorch/pull/150770
Approved by: https://github.com/sraikund16, https://github.com/jeromean
This commit is contained in:
wdziurdz 2025-04-11 05:17:08 +00:00 committed by PyTorch MergeBot
parent 85ada5d6dd
commit 6c7336cb31

View File

@ -609,6 +609,7 @@ class FunctionEvent(FormattedTimesMixin):
DeviceType.CUDA,
DeviceType.PrivateUse1,
DeviceType.MTIA,
DeviceType.HPU,
]
return self.time_range.elapsed_us()
@ -633,6 +634,7 @@ class FunctionEvent(FormattedTimesMixin):
DeviceType.CUDA,
DeviceType.PrivateUse1,
DeviceType.MTIA,
DeviceType.HPU,
]
return self.device_time_total