pti-gpu
pti-gpu copied to clipboard
[Unitrace] Use L0 core extension to query PCI properties
Unitrace uses sysman in legacy mode (zeInit + ZES_ENABLE_SYSMAN), however this is not supported for Xe2 and newer platforms: https://github.com/intel/compute-runtime/blob/releases/25.22/programmers-guide/SYSMAN.md#support-and-limitations hence leading to an abort on Xe2 and newer devices when calling unitrace --device-list.
./src/levelzero/ze_metrics.h:66:
void PrintDeviceList(): Assertionstatus == ZE_RESULT_SUCCESS' failed.
Since Level-Zero 1.3.0 specification, you can use zeDevicePciGetPropertiesExt instead of sysman.
As sysman is only used to query PCI information, you can remove its use and switch to the core extension instead.