oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
211 stars 90 forks source link

[question] Should zesDeviceEnumPowerDomains return 0 for Integrated GPUs? #175

Open roaa2ammar opened 1 month ago

roaa2ammar commented 1 month ago

Currently I am working with the Sysman API to measure power consumption and I am encountering an issue where zesDeviceEnumPowerDomains returns 0 consistently when running it on an integrated GPU (Device: Intel(R) UHD Graphics 770). However, when running on a discrete GPU it returns 1 (Device: Intel(R) Arc(TM) A770 Graphics).

I am working on Linux for both GPUs and driver version: 24.13.29138.29 for both.

Is this expected behaviour for integrated GPUs to return 0 power domains with zesDeviceEnumPowerDomains?

If so, is there an alternative way to measure the power consumption of integrated GPUs using the Level Zero API?

Thanks