Skip to content

Add flush and sync around prints#763

Merged
TysonRayJones merged 1 commit into
develfrom
sync-around-prints
May 31, 2026
Merged

Add flush and sync around prints#763
TysonRayJones merged 1 commit into
develfrom
sync-around-prints

Conversation

@TysonRayJones
Copy link
Copy Markdown
Member

to reduce the likelihood of users printing from non-root nodes interrupting QuEST root output. This is not bullet-proof; we sync the active communicator rather than MPI_COMM_WORLD so the user-controlled non-participating processes may still be printing. Furthermore, even if all processes participate, some may have outstanding non-root prints that are not aggregated to the user screen by the time MPI_Barrier finishes. But these syncs greatly reduce the change of corruption, and are effectively free!

to reduce the likelihood of users printing from non-root nodes interrupting QuEST root output. This is not bullet-proof; we sync the active communicator rather than MPI_COMM_WORLD so the user-controlled non-participating processes may still be printing. Furthermore, even if all processes participate, some may have outstanding non-root prints that are not aggregated to the user screen by the time MPI_Barrier finishes. But these syncs greatly reduce the change of corruption, and are effectively free!
@TysonRayJones TysonRayJones merged commit 3b22d94 into devel May 31, 2026
136 of 137 checks passed
@TysonRayJones TysonRayJones deleted the sync-around-prints branch May 31, 2026 06:02
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