[PR #14689] [CLOSED] ml: rename SSMScan parameter C to CM to resolve naming conflict #77081

Closed
opened 2026-05-05 09:47:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14689
Author: @nodcat
Created: 3/7/2026
Status: Closed

Base: mainHead: main


📝 Commits (4)

  • fe8f0e0 ml:rename SSMScan parameter C to D to resolve naming conflict
  • f189797 Merge branch 'ollama:main' into main
  • 40108eb ml:rename SSMScan parameter C to D to resolve naming conflict
  • 9bfd9c7 Merge remote-tracking branch 'origin/main'

📊 Changes

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

View changed files

📝 ml/backend/ggml/ggml.go (+3 -2)

📄 Description

What is this change?

Rename the C parameter of the Tensor.SSMScan method to CM to resolve the naming conflict with the cgo import alias C (which causes compilation confusion and readability issues).

Why is this change needed?

The original parameter name C collides with the cgo import alias C used to call ggml_ssm_scan, leading to potential code ambiguity and making it harder to maintain the SSMScan method. Renaming to CM eliminates this conflict while keeping the parameter's semantic meaning (it still refers to the SSM matrix C in the ggml_ssm_scan call).


🔄 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/14689 **Author:** [@nodcat](https://github.com/nodcat) **Created:** 3/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`fe8f0e0`](https://github.com/ollama/ollama/commit/fe8f0e0bb2ad4a3842f22dbe74d6620bdb1d0188) ml:rename SSMScan parameter C to D to resolve naming conflict - [`f189797`](https://github.com/ollama/ollama/commit/f189797c9344770b4946b8d4d81b6e11216a241b) Merge branch 'ollama:main' into main - [`40108eb`](https://github.com/ollama/ollama/commit/40108eb04da887a51c9607d04d8956d58dad5992) ml:rename SSMScan parameter C to D to resolve naming conflict - [`9bfd9c7`](https://github.com/ollama/ollama/commit/9bfd9c70f0b873489dd89e54a70bc28926550756) Merge remote-tracking branch 'origin/main' ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend/ggml/ggml.go` (+3 -2) </details> ### 📄 Description ## What is this change? Rename the `C` parameter of the `Tensor.SSMScan` method to `CM` to resolve the naming conflict with the cgo import alias `C` (which causes compilation confusion and readability issues). ## Why is this change needed? The original parameter name `C` collides with the cgo import alias `C` used to call `ggml_ssm_scan`, leading to potential code ambiguity and making it harder to maintain the SSMScan method. Renaming to `CM` eliminates this conflict while keeping the parameter's semantic meaning (it still refers to the SSM matrix C in the ggml_ssm_scan call). --- <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 09:47:23 -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#77081