level-zero icon indicating copy to clipboard operation
level-zero copied to clipboard

`zesMemoryGetState` only works under root user

Open notsyncing opened this issue 2 years ago • 0 comments

Hello, I'm trying the free global memory query described here: https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_intel_device_info.md, which calls zesMemoryGetState under the hood. But I found that it always returns the total memory (16225243136 bytes, which is all my VRAM) as free memory under non-root user (already added to video and render group) even if something has occupied some VRAM, while under root user it correctly returned the free memory (10125414400 bytes).

btw, xpu-smi also always reports 0 MB of used memory under non-root user, while reporting the correct 6632 MB under root user.

Is this behavior by design or there was some bugs? Thanks!

environment:

Fedora Silverblue 39
linux kernel 6.6.13-200.fc39.x86_64
oneapi-basekit 2024.0
oneapi-level-zero 1.15.8-1.fc39.x86_64

notsyncing avatar Feb 11 '24 06:02 notsyncing