Hello! To be able to get the GPU stats for AMD GPUs, btop need to build-depend on librocm-smi-dev. Grüße, Sven
Hi,
I tested the below but I don't see the build log change or binary pick
up new dependencies:
commit 683c6768c9b6b787f16ecfd1417449e758e520fc (HEAD -> debian/latest)
Author: Otto Kekäläinen <otto@debian.org>
Date: Thu Feb 12 09:28:38 2026 +0800
Build-depend on librocm to enable GPU stats for AMD CPUs (Closes: #1121425)
diff --git a/debian/control b/debian/control
index 07da47f..d661d61 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Section: utils
Maintainer: Otto Kekäläinen <otto@debian.org>
Build-Depends:
debhelper-compat (= 13),
+ librocm-smi-dev,
lowdown,
Standards-Version: 4.7.3
Homepage: https://github.com/aristocratos/btop
$ objdump -x btop_1.4.6-2_amd64/usr/bin/btop | grep NEEDS
(empty)
This needs more research on how to actually enable it.
I was stumped for a moment too, but then I see in src/linux/btop_collect.cpp that the code uses dlopen() to load the library. Which also means just specifying the B-D is not sufficient, it also needs to manually depend on the library so it is present. (Unfortunately.) So just adding librocm-smi-dev is not sufficient, the package also needs Depends: librocm-smi64-1 Grüße, S°
S°
The package will automatically depend on whatever dependencies it pulls in at build-time, that is not the issue or solution. The problem is that I didn't figure out any built flag that would actually make the btop build change in any way that would even try to use librocm.
It works for me, I automatically get the GPU_SUPPORT flag when I B-D on the library. The automatic depends for it will not work, because the btop binary does not link against it, but will try to dlopen() it at run-time when needed. So dh_shlibdeps will not output the dependency. See the attached build log for how it looks for me. Grüße, Sven.
Hello, I confirm that just installing rocm-smi after installing btop provides me with amdgpu stats in btop. So I do agree that adding a Recommend: rocm-smi is the only thing needed from an user perspective. I can attach a debdiff if that helps. Agathe
Hi Agathe and Sven, I filed now https://salsa.debian.org/mariogrip/btop/-/merge_requests/2 to implement the change above. Unfortunately I don't have access to the hardware required to test this, so hoping for contributions in testing or filing more MRs. Note that potentially duplicate issue was also filed in Ubuntu (https://bugs.launchpad.net/ubuntu/+source/btop/+bug/2152072) and Dave is also looking into it. Additionally https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1121422 was filed by Sven about permission issues that might also be at play here.
... Sorry wrong URL. Correct one is https://salsa.debian.org/otto/btop/-/merge_requests/5
Hi, Do you want to test https://salsa.debian.org/otto/btop/-/merge_requests/5 before I merge and upload? It now also has a patch to detect librocm_smi64.so.7 specifically.
Hello Otto, 2026-05-28 16:53 CEST, Otto Kekäläinen: Tested locally on Ubuntu 26.04 and it works fine on my hardware. See my comment on the PR for additional details. Thanks, Agathe.
It will be about 3 days until I have access to a system with an AMD GPU. But since you got other testers in the meantime, that should not prevent you from uploading. Grüße, Sven
We believe that the bug you reported is fixed in the latest version of btop, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1121425@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Otto Kekäläinen <otto@debian.org> (supplier of updated btop package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Sun, 31 May 2026 00:33:33 +0000 Source: btop Architecture: source Version: 1.4.7-1 Distribution: unstable Urgency: medium Maintainer: Otto Kekäläinen <otto@debian.org> Changed-By: Otto Kekäläinen <otto@debian.org> Closes: 1121425 Changes: btop (1.4.7-1) unstable; urgency=medium . * New upstream release * Bump Debian Policy version to 4.7.4 * Recommend rocm-smi to enable stats for AMD GPUs (Closes: #1121425) * Backport upstream commit to detect librocm_smi64.so.7 when available Checksums-Sha1: 79f24f9bfbea17aa64efdd48be51b2613552db84 1802 btop_1.4.7-1.dsc 30563f173ba0b5217f9cb233137b76a7e13dffdc 1279763 btop_1.4.7.orig.tar.gz 981f019d7c411f828ed17568ce81d4bc19e51f95 7316 btop_1.4.7-1.debian.tar.xz ff40b2ea9e3c0f3acf4f0e2ec525f84c73ab5486 5320 btop_1.4.7-1_source.buildinfo Checksums-Sha256: 652ba17beb2e92f83d66dd49b00fbc1adc66f08b2bea07c0b93a5c890d913cb0 1802 btop_1.4.7-1.dsc 23d182c4efd5836f1a3cdd20004e72d09ee06b26ff9edf762b586063f7a73dd3 1279763 btop_1.4.7.orig.tar.gz 229fa7b992773d61e26deb5753513b4fd4b2a9446537e9c5bf2f2b2076f227ea 7316 btop_1.4.7-1.debian.tar.xz dc1bcc61bf3ee65f10588917a022fd4c825a80337bf43c86dd5df8fd22a26f76 5320 btop_1.4.7-1_source.buildinfo Files: a8cb0d37461b4ef95d7d2c2821dc6fd2 1802 utils optional btop_1.4.7-1.dsc 3130043ee82bcf04a48dac253fc2e6cb 1279763 utils optional btop_1.4.7.orig.tar.gz 0e2c7bf51908d6f7d83dbdf88f6fbff0 7316 utils optional btop_1.4.7-1.debian.tar.xz 3e18e6a4c2424e4fc231516b711e2cb4 5320 utils optional btop_1.4.7-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmobkcQACgkQvthEn87o 2ojDiA//WRT05BPRbrQVM+pSAPfJewDeAJ5d1sMR2IEYkrqg47c72GVz4WpdbN9i 2He1IR/Z+qob0prOL8dq1Xvya1pJew7Tpnx8iVPUIZ62ldATbZeYK8dNjxqs6h8h RW/wlS5H4+Sqe6p+yK+Uavt8U2XcMfSj6wGAuE+cd30L7kvGOyq7huhmrodbpHRJ DnrrVX4oJA7W/RrWgUo7TNFrGLxJjSkuHOwWvB/iG6iHMwgfPQyuyv+N8+IU0Ijz AzeuIWPeFwZ+Y4UeonXQMHvhPmmDdMBgm5CBZFaXVFfvYBa7JRiMGKoeW82rn/Bh SL8NDEVogHfwKobGezvMR2QgLqMe4fBZ4QO6zLj1grv78faYJLoj2slv/ooSb9qO b+BWMxeeLjmbCr4X7ye8X6r6B+XT5cbAx/j572fDvp9ThBmYSE6IoAnx+RH5Alf4 fiLufZtGHF9EDUUi9f/mxxJr7slY19GaEbRSZDc3W0KyQnFVXRXRAZ0jhXYg8UUu QHqakXylGPlQdl3r6tx0AKoLMsMQYLEHoUt95qt3RoIp/4MWAI8t4XjEy8tTpgDn xeiSdslzbJoRUsCJ/rdsePJHl3lIkspq4JOCyi+dXJ9s6lDNFkM1QJJcwI3GZGAm qpeKEtj9fh0jeuxdTan0pUXNy7EJ/55s0+3VqbHv265r2AXtxWg= =cD7s -----END PGP SIGNATURE-----