Skip to content

Conversation

@jons-pf
Copy link
Collaborator

@jons-pf jons-pf commented Sep 14, 2025

It is read in each thread in the for loop condition check, but written
only from one thread within SolveEquilibriumLoop.
This PR introduces a barrier to protect the read from liter_flag within
the for loop condition from the write within SolveEquilibriumLoop.

Copy link
Collaborator Author

jons-pf commented Sep 14, 2025


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jons-pf jons-pf force-pushed the jons-fix-liter-race branch from 818aa2a to 52c98ce Compare September 14, 2025 14:27
@jons-pf jons-pf changed the base branch from jons-tsan-setup to graphite-base/386 September 14, 2025 16:06
@jons-pf jons-pf force-pushed the jons-fix-liter-race branch from 52c98ce to b5d285a Compare September 14, 2025 16:07
@jons-pf jons-pf changed the base branch from graphite-base/386 to main September 14, 2025 16:07
@jons-pf jons-pf requested a review from jurasic-pf September 14, 2025 16:13
@jurasic-pf jurasic-pf changed the base branch from main to graphite-base/386 September 14, 2025 20:53
@jurasic-pf jurasic-pf changed the base branch from graphite-base/386 to jurasic/fix-mac-ci September 14, 2025 20:53
@graphite-app graphite-app bot changed the base branch from jurasic/fix-mac-ci to graphite-base/386 September 15, 2025 08:06
@graphite-app graphite-app bot force-pushed the jons-fix-liter-race branch from be4b598 to 623722b Compare September 15, 2025 08:14
@graphite-app graphite-app bot changed the base branch from graphite-base/386 to main September 15, 2025 08:14
@graphite-app graphite-app bot force-pushed the jons-fix-liter-race branch from 623722b to 4ce29e4 Compare September 15, 2025 08:15
@graphite-app
Copy link

graphite-app bot commented Sep 15, 2025

Merge activity

It is read in each thread in the for loop condition check, but written
only from one thread within SolveEquilibriumLoop.
This PR introduces a barrier to protect the read from liter_flag within
the for loop condition from the write within SolveEquilibriumLoop.
@graphite-app graphite-app bot force-pushed the jons-fix-liter-race branch from 4ce29e4 to 9bf8324 Compare September 15, 2025 08:51
@graphite-app graphite-app bot merged commit 9bf8324 into main Sep 15, 2025
24 checks passed
jungdaesuh pushed a commit to jungdaesuh/vmecpp that referenced this pull request Dec 1, 2025
It is read in each thread in the for loop condition check, but written
only from one thread within SolveEquilibriumLoop.
This PR introduces a barrier to protect the read from liter_flag within
the for loop condition from the write within SolveEquilibriumLoop.
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.

3 participants