[PR #15188] Fix: verify actual NVIDIA GPU presence before exiting installer #61762

Open
opened 2026-04-29 16:47:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15188
Author: @Regg819
Created: 4/1/2026
Status: 🔄 Open

Base: mainHead: fix/issue-15184-nvidia-check


📝 Commits (1)

  • a8fe36a fix: verify actual NVIDIA GPU presence, not just nvidia-smi tool

📊 Changes

1 file changed (+17 additions, -3 deletions)

View changed files

📝 scripts/install.sh (+17 -3)

📄 Description

Summary

Fixes issue #15184 - Installer exits early when nvidia-smi is found even if no NVIDIA GPU is present.

Problem

The installer was checking only if nvidia-smi tool is available, not if an actual NVIDIA GPU exists. This caused the installer to skip AMD GPU detection on systems that have AMD hardware but have nvidia-smi installed (e.g., from nvidia-utils package without actual GPU).

Fix

  • Check for actual NVIDIA GPU via lspci and lshw in addition to nvidia-smi
  • Use nvidia-smi --query-gpu to verify GPU is actually present
  • Allow installer to continue to AMD detection if no real NVIDIA GPU found

Testing

This fix ensures that:

  1. Systems with actual NVIDIA GPUs still work correctly
  2. Systems with AMD GPUs but nvidia-smi installed get ROCm installed
  3. Mixed GPU configurations are properly detected

Buy Me a Coffee at ko-fi.com


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15188 **Author:** [@Regg819](https://github.com/Regg819) **Created:** 4/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/issue-15184-nvidia-check` --- ### 📝 Commits (1) - [`a8fe36a`](https://github.com/ollama/ollama/commit/a8fe36a7b842765e6615998fdd867bd5c4029e5f) fix: verify actual NVIDIA GPU presence, not just nvidia-smi tool ### 📊 Changes **1 file changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+17 -3) </details> ### 📄 Description ## Summary Fixes issue #15184 - Installer exits early when nvidia-smi is found even if no NVIDIA GPU is present. ## Problem The installer was checking only if `nvidia-smi` tool is available, not if an actual NVIDIA GPU exists. This caused the installer to skip AMD GPU detection on systems that have AMD hardware but have `nvidia-smi` installed (e.g., from `nvidia-utils` package without actual GPU). ## Fix - Check for actual NVIDIA GPU via `lspci` and `lshw` in addition to `nvidia-smi` - Use `nvidia-smi --query-gpu` to verify GPU is actually present - Allow installer to continue to AMD detection if no real NVIDIA GPU found ## Testing This fix ensures that: 1. Systems with actual NVIDIA GPUs still work correctly 2. Systems with AMD GPUs but nvidia-smi installed get ROCm installed 3. Mixed GPU configurations are properly detected <a href='https://ko-fi.com/J3J61X38VA' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:47:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61762