ollama - ✅(Solved) Fix install.sh exits early on hybrid AMD + NVIDIA systems and skips AMD ROCm bundle [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15665Fetched 2026-04-19 15:04:34
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1

PR fix notes

PR #15702: install: check for AMD GPU on hybrid systems before exiting

Description (problem / solution / changelog)

Problem

On hybrid systems with both an NVIDIA GPU (`nvidia-smi` present) and an AMD GPU, `scripts/install.sh` exits immediately after detecting `nvidia-smi` — before ever reaching the AMD GPU check. The ROCm bundle is never downloaded, leaving the AMD GPU unsupported.

Reported on Framework Laptop 16 (NVIDIA dGPU + AMD Radeon 890M iGPU) on Fedora 43.

Fix

Rather than duplicating the ROCm download logic, only exit early from the `nvidia-smi` block when no AMD GPU is present. On hybrid systems it falls through to the existing AMD detection and install path.

Test scenarios

SystemBeforeAfter
Hybrid NVIDIA+AMDExits, skips ROCmFalls through to existing AMD block, downloads ROCm
NVIDIA onlyExits cleanlyExits cleanly (no change)
AMD onlyDownloads ROCmDownloads ROCm (no change)
NVIDIA via lspci (no nvidia-smi)Falls through to CUDA installFalls through to CUDA install (no change)
No GPUCPU-only warningCPU-only warning (no change)

Fixes #15665

Changed files

  • scripts/install.sh (modified, +3/-1)
RAW_BUFFERClick to expand / collapse

What is the issue?

On machines like a Framework Laptop 16 with an NVIDIA dGPU and AMD Radeon 890M iGPU, the install flow is broken.

I'm using Fedora 43 - with both an NVIDIA GPU and an AMD iGPU/APU, scripts/install.sh exits as soon as nvidia-smi is detected and does not continue to the AMD detection path.

This means the script does not download and extract the ollama-linux-<arch>-rocm package on hybrid systems, even when an AMD GPU is present.

From reading the current script the relevant logic is:

  • if nvidia-smi is available, print NVIDIA GPU installed. and exit 0
  • only after that, check for AMD and download ollama-linux-${ARCH}-rocm

Expected behavior:

  • On hybrid AMD + NVIDIA systems, the installer should not exit before checking AMD hardware.
  • If AMD hardware is detected, it should also install the Ollama ROCm bundle, or at minimum clearly document that hybrid systems require a separate manual ROCm bundle install.

Relevant log output

OS

Linux

GPU

AMD, Nvidia

CPU

AMD

Ollama version

0.21.0

extent analysis

TL;DR

The install script should be modified to check for AMD hardware even if an NVIDIA GPU is detected, to support hybrid systems with both AMD and NVIDIA GPUs.

Guidance

  • The current script exits immediately after detecting an NVIDIA GPU, preventing it from checking for AMD hardware. This logic should be revised to continue checking for other GPUs.
  • The script should be updated to download and extract the ollama-linux-<arch>-rocm package when an AMD GPU is detected, regardless of the presence of an NVIDIA GPU.
  • Consider adding documentation to clearly outline the installation process for hybrid systems, including any required manual steps.
  • To verify the fix, test the install script on a hybrid system with both AMD and NVIDIA GPUs, ensuring that it correctly detects and installs the necessary packages for both GPUs.

Example

# Pseudocode example of revised logic
if nvidia-smi is available; then
  print "NVIDIA GPU installed."
  # Do not exit, continue to check for AMD hardware
fi

if amd hardware is detected; then
  download and extract ollama-linux-${ARCH}-rocm package
fi

Notes

The provided solution assumes that the install script is the primary point of failure and that modifying it will resolve the issue. However, without the actual script code, this is an educated guess based on the described behavior.

Recommendation

Apply workaround: Modify the install script to continue checking for AMD hardware even after detecting an NVIDIA GPU, to ensure proper installation on hybrid systems. This approach directly addresses the described issue and provides a clear path to resolving the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING