-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
btop: Update to 1.3.2 #48113
btop: Update to 1.3.2 #48113
Conversation
Tested and is not working for me on x86-64-musl. CPU bar are missing. Also, we could add ROCm-SMI-LIB as a dependency for AMD GPU support. I have a template for it, but it is trivial, and has no other dependencies |
btop 1.3.2 available |
I just tested, and 1.3.2 looks like its working for me on musl Also I created a PR to add ROCm-SMI-LIB for GPU support: #48744 |
Definetly will try.. Since btop must be compiled with ROCm support, I think we will need second package for that... am I right? |
ROCm-SMI is a standalone library which doesn't require any additional ROCm components. It pretty much just is an interface to get GPU load, power usage, temps, fan speeds, etc. |
I am speaking about btop and btop-rocm |
I don't think that there is a need for a second package. How is it different from other packages we build which have optional dependencies for extended functionality? |
I just checked the code and it should dlopen librocm_smi64.so |
But as I study btop instructions before. ROCm must be presented at build time. If isn't btop should be builded without ROCm support. So provide library for usuall btop shouldn't be enough. Must be builded again with ROCm, as far as I understand... So only difference will be ROCM_devel in makedepends repektive somethink like this?:
|
I believe what @Calandracas606 is saying is that there is no need to create a new That said, |
@cinerea0 what I mean is that btop tries to dlopen librocm_smi, it's not even needed as a makedepends. //? Try possible library paths and names for librocm_smi64.so
const array libRocAlts = {"/opt/rocm/lib/librocm_smi64.so",
"librocm_smi64.so",
"librocm_smi64.so.5", // fedora
"librocm_smi64.so.1.0", // debian
"librocm_smi64.so.6"};
for (const auto &l : libRocAlts) {
rsmi_dl_handle = dlopen(l, RTLD_LAZY);
if (rsmi_dl_handle != nullptr) {
break;
}
}
if (!rsmi_dl_handle) {
Logger::info(
"Failed to load librocm_smi64.so, AMD GPUs will not be detected: "s +
dlerror());
return false;
} All that being said, there appears to be a bug in the gpu code, but I've been able to patch it to get it working |
made a bug report upstream, but it shouldn't block this PR |
btop needs rocm-smi-lib #48744 to display amdgpu details however, btop also appears bugged, and fails to display without a patch: aristocratos/btop#774 |
Testing the changes
Local build testing