[PR #2131] [MERGED] Probe GPUs before backend init #21332

Closed
opened 2026-04-19 15:35:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2131
Author: @dhiltgen
Created: 1/21/2024
Status: Merged
Merged: 1/22/2024
Merged by: @dhiltgen

Base: mainHead: probe_cards_at_init


📝 Commits (1)

  • ec37645 Probe GPUs before backend init

📊 Changes

1 file changed (+34 additions, -1 deletions)

View changed files

📝 llm/ext_server/ext_server.cpp (+34 -1)

📄 Description

Detect potential error scenarios so we can fallback to CPU mode without hitting asserts.

This won't fix the underlying errors we're seeing in #1940 and #1877 but it should hopefully allow us to detect the non-working scenario and fallback to CPU. We still need to understand why cudaGetDevice is failing on these systems (maybe incompatible cuda libs or drivers?)


🔄 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/2131 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 1/21/2024 **Status:** ✅ Merged **Merged:** 1/22/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `probe_cards_at_init` --- ### 📝 Commits (1) - [`ec37645`](https://github.com/ollama/ollama/commit/ec3764538d4755448b326400093608040219fd5f) Probe GPUs before backend init ### 📊 Changes **1 file changed** (+34 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/ext_server/ext_server.cpp` (+34 -1) </details> ### 📄 Description Detect potential error scenarios so we can fallback to CPU mode without hitting asserts. This won't fix the underlying errors we're seeing in #1940 and #1877 but it should hopefully allow us to detect the non-working scenario and fallback to CPU. We still need to understand why `cudaGetDevice` is failing on these systems (maybe incompatible cuda libs or drivers?) --- <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-19 15:35:01 -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#21332