Build nvtop 3.2 from source (apt's 3.0.2 doesn't detect gfx1151)

Ubuntu 26.04 ships nvtop 3.0.2 via apt, which predates the gfx1151
sysfs detection improvements that landed in 3.2.x. Symptom: nvtop
runs but the iGPU doesn't appear.

Drop nvtop from the apt package list, add a from-source build step
that pulls a pinned NVTOP_VERSION, builds with -DAMDGPU_SUPPORT=ON,
and installs to /usr/local/bin (which wins over /usr/bin in PATH).
Idempotent: only rebuilds when the installed version doesn't match.

Run `sudo nvtop` to see container processes — non-root users only
see their own /proc/<pid>/fdinfo entries.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-08 15:56:10 -04:00
parent d856839526
commit 37b0cd9a58
2 changed files with 47 additions and 3 deletions

View File

@@ -80,6 +80,10 @@ Top of `deploy.py`:
the version; find it at https://repo.radeon.com/amdgpu-install/.
- `AMDGPU_TOP_VERSION` — bump when a newer release lands at
https://github.com/Umio-Yasuno/amdgpu_top/releases.
- `NVTOP_VERSION` — built from source because Ubuntu 26.04's apt
package (3.0.2) predates gfx1151 detection. Bump when a newer release
lands at https://github.com/Syllo/nvtop/releases. Run `sudo nvtop` to
see all GPU processes (non-root only sees the calling user's own).
Compose images in
`compose/{llama,vllm,ollama,openwebui,beszel,openlit,phoenix,openhands,homepage}.yml`