[PR #12856] [CLOSED] fix for issue 12781 removes regression on 3d0b1734 #24520

Closed
opened 2026-04-19 17:37:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12856
Author: @kiliansinger
Created: 10/30/2025
Status: Closed

Base: mainHead: PR_fix_12781


📝 Commits (3)

  • 59cb0e7 removing if(allocate) in ~ggml_cuda_pool_leg fixes #12781
  • bd27ee2 added missing initialization
  • ba99e3c This fixes issue #12781 on newest versions of ollama

📊 Changes

2 files changed (+3 additions, -5 deletions)

View changed files

📝 ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu (+2 -4)
📝 runner/ollamarunner/runner.go (+1 -1)

📄 Description

commit 3d0b1734c0
introduced a crash when gglm-cuda.cu allocation is started with alloc=false.
This was caused by one use of if(allocated) inside destructor that should be removed.


🔄 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/12856 **Author:** [@kiliansinger](https://github.com/kiliansinger) **Created:** 10/30/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `PR_fix_12781` --- ### 📝 Commits (3) - [`59cb0e7`](https://github.com/ollama/ollama/commit/59cb0e78eb63c86d42f1a08b673d351c4d72a2cc) removing if(allocate) in ~ggml_cuda_pool_leg fixes #12781 - [`bd27ee2`](https://github.com/ollama/ollama/commit/bd27ee21bbbd0f960879ae25950254f994324be5) added missing initialization - [`ba99e3c`](https://github.com/ollama/ollama/commit/ba99e3c845cfcc7007348d16b2d0a5bd9657dc90) This fixes issue #12781 on newest versions of ollama ### 📊 Changes **2 files changed** (+3 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml/src/ggml-cuda/ggml-cuda.cu` (+2 -4) 📝 `runner/ollamarunner/runner.go` (+1 -1) </details> ### 📄 Description commit 3d0b1734c006798960a56acb0ea23ea57e0dd1d9 introduced a crash when gglm-cuda.cu allocation is started with alloc=false. This was caused by one use of if(allocated) inside destructor that should be removed. --- <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 17:37:25 -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#24520