Skip to content

vulkan: Wrong Index Variable in Inner Loop#23665

Merged
0cc4m merged 1 commit into
ggml-org:masterfrom
winstonma:fix-wrong-index-variable-inner-loop
May 28, 2026
Merged

vulkan: Wrong Index Variable in Inner Loop#23665
0cc4m merged 1 commit into
ggml-org:masterfrom
winstonma:fix-wrong-index-variable-inner-loop

Conversation

@winstonma

Copy link
Copy Markdown
Contributor

Overview

The source offset uses i1*nb0 inside the i0 loop instead of i0*nb0. This causes incorrect source addresses for every element, producing garbage data in the non-contiguous tensor copy path.

Additional information

Requirements

@winstonma winstonma requested a review from a team as a code owner May 25, 2026 12:59
@github-actions github-actions Bot added Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels May 25, 2026

@jeffbolznv jeffbolznv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this change is correct, though the function appears to be unused.

@winstonma

Copy link
Copy Markdown
Contributor Author

Yes it is unused at the moment but the function may still become useful in the future.

@0cc4m 0cc4m merged commit 7c48fb8 into ggml-org:master May 28, 2026
23 of 50 checks passed
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request May 28, 2026
fewtarius pushed a commit to fewtarius/CachyLLama that referenced this pull request May 30, 2026
turbo-tan pushed a commit to turbo-tan/llama.cpp-tq3 that referenced this pull request Jun 2, 2026
@winstonma winstonma deleted the fix-wrong-index-variable-inner-loop branch June 16, 2026 08:22
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jun 23, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jun 23, 2026
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Jul 3, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
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 Vulkan Issues specific to the Vulkan backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants