[PR #12707] [MERGED] cuda: get driver version after props #76213

Closed
opened 2026-05-05 08:43:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12707
Author: @dhiltgen
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @dhiltgen

Base: mainHead: cuda_ver_after_prop


📝 Commits (1)

  • 09dd9e9 cuda: get driver version after props

📊 Changes

2 files changed (+19 additions, -15 deletions)

View changed files

📝 llama/patches/0026-GPU-discovery-enhancements.patch (+16 -14)
📝 ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu (+3 -1)

📄 Description

Users on Windows without GPUs are reporting errors relating to cudaDriverGetVersion with the device set to -1. This ensures we only grab the driver once we're enumerating actual devices.

Fixes #12699


🔄 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/12707 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `cuda_ver_after_prop` --- ### 📝 Commits (1) - [`09dd9e9`](https://github.com/ollama/ollama/commit/09dd9e900244ef11667b0695a8bc712d56f8f8b0) cuda: get driver version after props ### 📊 Changes **2 files changed** (+19 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `llama/patches/0026-GPU-discovery-enhancements.patch` (+16 -14) 📝 `ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu` (+3 -1) </details> ### 📄 Description Users on Windows without GPUs are reporting errors relating to cudaDriverGetVersion with the device set to -1. This ensures we only grab the driver once we're enumerating actual devices. Fixes #12699 --- <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-05-05 08:43:39 -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#76213