Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
englut opened this issue Sep 28, 2024 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@englut
Copy link

englut commented Sep 28, 2024

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 [email protected]: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?

@englut englut added the bug Something isn't working label Sep 28, 2024
@hsghost
Copy link

hsghost commented Sep 28, 2024

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
Copy link
Author

englut commented Sep 28, 2024

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

@Jack-Sandberg
Copy link

I had the same error message using an A310.

DEBUG: Failed to find Intel GPU engines, Intel GPUs will not be detected

The error message stems from this line

engines = discover_engines(device);
if (!engines) {
  Logger::debug("Failed to find Intel GPU engines, Intel GPUs will not be detected");
  return false;
}

where device is defined as const char* device = "i915";.

Looking into discover_engines, it seems that device is used to define the directory to look for the GPU engine:

snprintf(sysfs_root, sizeof(sysfs_root), "/sys/devices/%s/events", device);

Checking ls /sys/devices/ the only similar directory was named i915_0000_03_00.0. Setting this line to

const char* device = "i915_0000_03_00.0";

and recompiling with make removed the errors. Finally, to get the GPU bar to show up I had to press 5 on my keyboard whilst running sudo btop.

I could try to make a pull-request for this but I do not know if the standard directory name is i915, i915_0000_03_00.0 or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants