aristocratos / btop

A monitor of resources
Apache License 2.0
19.93k stars 617 forks source link

[BUG] Failed to find Intel GPU engines. Intel Arc A310. Linux x86_64 6.6.65 #938

Open englut opened 2 days ago

englut commented 2 days ago

I'm trying to get my GPU to show up in btop. I know the latest version has intel_gpu_top support! 🙏

However, I am seeing an error in my btop when I run in debug mode.

2024/09/28 (00:06:32) | ===> btop++ v.1.4.0
2024/09/28 (00:06:32) | DEBUG: Running in DEBUG mode!
2024/09/28 (00:06:32) | INFO: Logger set to DEBUG
2024/09/28 (00:06:32) | DEBUG: Using locale en_CA.UTF-8
2024/09/28 (00:06:32) | INFO: Running on /dev/pts/2
2024/09/28 (00:06:32) | INFO: Failed to load libnvidia-ml.so, NVIDIA GPUs will not be detected: libnvidia-ml.so.1: cannot open shared object file: No such file or directory
2024/09/28 (00:06:32) | INFO: Failed to load librocm_smi64.so, AMD GPUs will not be detected: librocm_smi64.so.6: cannot open shared object file: No such file or directory
2024/09/28 (00:06:32) | DEBUG: Failed to find Intel GPU engines, Intel GPUs will not be detected
2024/09/28 (00:06:32) | DEBUG: Shared::init() : Initialized.

I have an Intel Arc A310. I can run sudo intel_gpu_top (intel-gpu-tools-1.27-2):

Screenshot 2024-09-28 at 00 09 24

I'm running Arch Linux (arch: x86_64, kernel: 6.6.65-1-lts). With the btop package installed via AUR.

I also tested building from source, here are the steps I ran:

$ git clone git@github.com:aristocratos/btop.git
$ cd btop
$ sudo make install
$ sudo make setcap
$ btop

I also tried sudo make setuid. Same issue.

Is there something I'm missing?

hsghost commented 2 days ago

Don't know if it's relevant, but on my Arch with AUR installation I had to run btop with sudo to make the GPU part showing. So I just did

sudo setcap cap_perfmon=+ep $(where btop)

and now it's showing without sudo.

englut commented 2 days ago

@hsghost just tried that out! Didn't work. Even running with sudo btop doesn't work.