Skip to content

Comments

vulkan: fix data race in mul_mat_id shader#19790

Merged
0cc4m merged 1 commit intoggml-org:masterfrom
jeffbolznv:mmid_ballots_sh_race
Feb 24, 2026
Merged

vulkan: fix data race in mul_mat_id shader#19790
0cc4m merged 1 commit intoggml-org:masterfrom
jeffbolznv:mmid_ballots_sh_race

Conversation

@jeffbolznv
Copy link
Collaborator

I've been working on automated data race detection (see KhronosGroup/Vulkan-ValidationLayers#11717), and it found a data race in the mul_mat_id shaders. All invocations in a subgroup were storing the same value to shared memory, but this is still technically a data race. Just store on the first invocation.

@jeffbolznv jeffbolznv requested a review from 0cc4m as a code owner February 21, 2026 23:17
@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 Feb 21, 2026
@0cc4m
Copy link
Collaborator

0cc4m commented Feb 24, 2026

That's a good tool to have, great work.

@0cc4m 0cc4m merged commit 3ea5360 into ggml-org:master Feb 24, 2026
71 of 73 checks passed
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.

2 participants