Linux: btop fails to find AMD GPU #5793
-
Additional Info
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This means that support for AMD GPU is not provided by Homebrew's btop. When there is no popular demand, it doesn't seem ideal to add the rocm-smi dependency to btop for everyone, so I suggest that you use your custom build if you need AMD GPU support. Also, from upstream's README:
|
Beta Was this translation helpful? Give feedback.
-
I did not need to compile the rocm_smi_lib though, the code attempts to autodetect the library: https://github.com/aristocratos/btop/blob/main/src/linux/btop_collect.cpp#L1313 I run strace on both and this is what it's supposed to do, I think, finding the OS installed rocm_smi in /lib64: while homebrew's btop doesn't search in /usr/lib64 or /lib64:
I see that the runtime search path is set as follows, which makes sense, but the strace shows that it's looking for /home/linuxbrew/.linuxbrew/Cellar/**glibc/2.35_1/**lib/librocm_smi64.so.6 which are not in the rpath list (from meanwhile on the nvidia system, it finds the libnvidia-sm library: it seems that dlopen could find it if the rocm_lib package has an additional symlink for librocm_smi64.so to librocm_smi64.so.1 (because btop includes librocm_smi64.so as a library to search for), but again, my hand-compiled binary is able to find the library.
` |
Beta Was this translation helpful? Give feedback.
This means that support for AMD GPU is not provided by Homebrew's btop. When there is no popular demand, it doesn't seem ideal to add the rocm-smi dependency to btop for everyone, so I suggest that you use your custom build if you need AMD GPU support.
Also, from upstream's README: