Skip to content

ggml : add a set of functions for checking contiguity of inner tensor dimensions - #25650

Merged
pwilkin merged 1 commit into
ggml-org:masterfrom
fairydreaming:contiguous-upto
Jul 14, 2026
Merged

ggml : add a set of functions for checking contiguity of inner tensor dimensions#25650
pwilkin merged 1 commit into
ggml-org:masterfrom
fairydreaming:contiguous-upto

Conversation

@fairydreaming

Copy link
Copy Markdown
Contributor

Overview

This PR adds another set of GGML API ggml_is_contiguous_to_[1-3]() functions (complementary to existing ggml_is_contiguous_[0-2]() for checking contiguity of inner tensor dimensions. The meaning is that tensor dimensions < n are checked for contiguity while contiguity of dimensions >= n is irrelevant.

Additional information

It reuses existing ggml_is_contiguous_n() implementation by adding another parameter to control a range of dimensions when checking contiguity (old parameter n that controls the lower limit was renamed to m, newly added n parameter controls the upper limit).

Requirements

@fairydreaming
fairydreaming requested a review from ggerganov as a code owner July 14, 2026 08:13
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Jul 14, 2026
@fairydreaming

Copy link
Copy Markdown
Contributor Author

@pwilkin Since you are familiar with the matter after yesterdays discussion can I get a review?

@pwilkin pwilkin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect :)

@pwilkin
pwilkin merged commit a7312ae into ggml-org:master Jul 14, 2026
25 checks passed
giveen pushed a commit to giveen/llama-cpp-turboquant that referenced this pull request Jul 18, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
CowboyTim pushed a commit to aardbeiplantje/llama.cpp that referenced this pull request Jul 21, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
RehanQasim-dev pushed a commit to aifoundry-org/llama.cpp that referenced this pull request Jul 23, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
RehanQasim-dev pushed a commit to aifoundry-org/llama.cpp that referenced this pull request Jul 23, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
smalinin pushed a commit to smalinin/llama.cpp that referenced this pull request Aug 4, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
… dimensions (ggml-org#25650)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants