Skip to content

[GSan] Fix GSAN atomic lowerings#10944

Open
jeffniu-openai wants to merge 4 commits into
mainfrom
jeffniu/gsan_cluster_barriers
Open

[GSan] Fix GSAN atomic lowerings#10944
jeffniu-openai wants to merge 4 commits into
mainfrom
jeffniu/gsan_cluster_barriers

Conversation

@jeffniu-openai

@jeffniu-openai jeffniu-openai commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Atomics get cluster barriers, and also broadcast their result across CTAs in multi-CTA kernels. When those atomic ops are converted to GSAN instrumented ops, the corresponding GSAN ops aren't lowered the same way. Introduce an AtomicOpInterface and unify the atomic lowering logic.

Without this, multi-CTA kernels with atomics miscompile under GSAN.

Stack

Merge bottom-up:

@jeffniu-openai
jeffniu-openai marked this pull request as ready for review July 18, 2026 05:37
@jeffniu-openai jeffniu-openai changed the title [GSan] Match atomic barrier lowering [GSan] Fix GSAN atomic lowerings Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant