mirror of
https://github.com/ollama/ollama
synced 2026-04-23 08:45:14 +00:00
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:
parent
ff23dd343f
commit
5a88958f17
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue