install: check for AMD GPU on hybrid systems before exiting

On systems with both an NVIDIA GPU (nvidia-smi present) and an AMD GPU,
the installer exited immediately after detecting nvidia-smi without ever
checking for AMD hardware. The ROCm bundle was never downloaded on these
hybrid systems.

Only exit early from the nvidia-smi block when no AMD GPU is present;
otherwise fall through to the existing AMD detection and ROCm install path.

Fixes #15665
This commit is contained in:
Michael Verrilli 2026-04-19 15:23:47 +00:00
parent ff23dd343f
commit 5a88958f17
No known key found for this signature in database
GPG key ID: E4F2103B6C63B961

View file

@ -293,7 +293,9 @@ check_gpu() {
if check_gpu nvidia-smi; then
status "NVIDIA GPU installed."
exit 0
if ! check_gpu lspci amdgpu && ! check_gpu lshw amdgpu; then
exit 0
fi
fi
if ! check_gpu lspci nvidia && ! check_gpu lshw nvidia && ! check_gpu lspci amdgpu && ! check_gpu lshw amdgpu; then