ollama - 💡(How to fix) Fix [Linux] Install script doesn't install rocm package when NVIDIA and AMD GPU present [1 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#15246Fetched 2026-04-08 02:33:44
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1labeled ×1
RAW_BUFFERClick to expand / collapse

What is the issue?

The early exit in the install script when an NVIDIA GPU is detected means that on systems with both and nvidia and AMD GPU (e.g. discrete NVIDIA card and an AMD iGPU) the rocm package is not installed.

Relevant log output

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

extent analysis

TL;DR

Modify the install script to handle systems with multiple GPUs, including both NVIDIA and AMD, to ensure the rocm package is installed when necessary.

Guidance

  • Identify the specific condition in the install script that causes the early exit when an NVIDIA GPU is detected.
  • Modify this condition to check for the presence of an AMD GPU as well, and install the rocm package if it is found.
  • Consider adding a flag or option to the install script to allow users to force the installation of the rocm package, even if an NVIDIA GPU is present.
  • Verify that the modified script correctly handles systems with multiple GPUs and installs the necessary packages.

Example

No specific code snippet can be provided without more information about the install script, but the modification might involve adding an additional check for the AMD GPU, such as:

if [ -n "$NVIDIA_GPU" ] && [ -n "$AMD_GPU" ]; then
  # Install rocm package
fi

Notes

The exact modification will depend on the specifics of the install script and the conditions under which it exits early.

Recommendation

Apply workaround: Modify the install script to correctly handle systems with multiple GPUs, as this will ensure the rocm package is installed when necessary, even if the system has both NVIDIA and AMD GPUs.

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

ollama - 💡(How to fix) Fix [Linux] Install script doesn't install rocm package when NVIDIA and AMD GPU present [1 participants]