Repository navigation
For each cov workspace file to one MPI rank - #102
Merged
Merged
Conversation
… MPI rank precompute_cov_couplings.py split (spin, hits) combinations across ranks, but several combinations write the same file (e.g. the signal-signal cwsp does not depend on hits). Ranks then computed and wrote the same file at the same time, and other ranks could read wsp_* files rank 0 was still writing. On 2 nodes this intermittently killed ranks and stopped the run. Now the script builds a list of unique output files (wsp + cwsp) and splits that across ranks, so each file is computed and written exactly once. A barrier at the end makes the step finish only after all ranks are done. File names and contents are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ouplings The continuation line of the product(...) loop was over-indented by one space. Assign the iterator first so the loop fits on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adrien-laposta
left a comment
Collaborator
There was a problem hiding this comment.
Code changes are fine. Approved
adrien-laposta
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some runs with several MPI ranks are still failing on precompute_cov_couplings.py because two ranks attempt to do the same at the same time.
precompute_cov_couplings.py split (spin, hits) combinations across ranks, but several combinations write the same file (e.g. the signal-signal cwsp does not depend on hits). Ranks then computed and wrote the same file at the same time, and other ranks could read wsp_* files rank 0 was still writing. On 2 nodes this intermittently killed ranks and stopped the run.
Now the script builds a list of unique output files (wsp + cwsp) and splits that across ranks, so each file is computed and written exactly once. A barrier at the end makes the step finish only after all ranks are done. File names and contents are unchanged.
Done with Claude Code Opus 5.5