[PR #5934] [MERGED] Report better error on cuda unsupported os/arch #37845

Closed
opened 2026-04-22 22:30:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5934
Author: @dhiltgen
Created: 7/25/2024
Status: Merged
Merged: 7/29/2024
Merged by: @dhiltgen

Base: mainHead: missing_cuda_repo


📝 Commits (1)

  • ce3c93b Report better error on cuda unsupported os/arch

📊 Changes

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

View changed files

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

📄 Description

If we detect an NVIDIA GPU, but nvidia doesn't support the os/arch, this will report a better error for the user and point them to docs to self-install the drivers if possible.

Fixes #3261 #2302

Example output on Ubuntu 22.04 on AWS g5g.xlarge (arm64)

% sh ./install.sh
>>> Downloading ollama...
######################################################################################################################################### 100.0%######################################################################################################################################### 100.0%
>>> Installing ollama to /usr/local/bin...
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
>>> Installing NVIDIA repository...
ERROR NVIDIA GPU detected, but your OS and Architecture are not supported by NVIDIA. Please install the CUDA driver manually https://docs.nvidia.com/cuda/cuda-installation-guide-linux/
% echo $?
1

🔄 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/5934 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 7/25/2024 **Status:** ✅ Merged **Merged:** 7/29/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `missing_cuda_repo` --- ### 📝 Commits (1) - [`ce3c93b`](https://github.com/ollama/ollama/commit/ce3c93b08f0b90496e86b9e0a5753334c2d21419) Report better error on cuda unsupported os/arch ### 📊 Changes **1 file changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+17 -3) </details> ### 📄 Description If we detect an NVIDIA GPU, but nvidia doesn't support the os/arch, this will report a better error for the user and point them to docs to self-install the drivers if possible. Fixes #3261 #2302 Example output on Ubuntu 22.04 on AWS g5g.xlarge (arm64) ``` % sh ./install.sh >>> Downloading ollama... ######################################################################################################################################### 100.0%######################################################################################################################################### 100.0% >>> Installing ollama to /usr/local/bin... >>> Adding ollama user to render group... >>> Adding ollama user to video group... >>> Adding current user to ollama group... >>> Creating ollama systemd service... >>> Enabling and starting ollama service... >>> Installing NVIDIA repository... ERROR NVIDIA GPU detected, but your OS and Architecture are not supported by NVIDIA. Please install the CUDA driver manually https://docs.nvidia.com/cuda/cuda-installation-guide-linux/ % echo $? 1 ``` --- <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-22 22:30:29 -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#37845