Created attachment 898045 [details, diff] patch In a musl based gentoo system btop fails to load the ROCm-SMI shared library, thus being unable to see gpu usage. This simple patch fixes it.
This seems like upstream issue 774. Unfortuantely, your patch looks more like a dirty fix than a real solution to the issue. I'd expect similar issues to occur with this patch applied whenever the libary's SONAME version changes (consider a Gentoo user who still uses SONAME version 5, which is available at the moment). I'd rather not apply such a kind of hack, as it only solves the issue under very specific circumstances. However, I can keep an eye out for progress on the corresponding upstream issue and backport the fix when some fix becomes available.