Skip to content

For each cov workspace file to one MPI rank - #102

Merged
chervias merged 2 commits into
mainfrom
chervias/fix
Nov 25, 2026
Merged

chervias merged 2 commits into
mainfrom
chervias/fix

Conversation

@chervias

@chervias chervias commented Nov 9, 2026

Copy link
Copy Markdown
Member

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

… 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 adrien-laposta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes are fine. Approved

@chervias
chervias merged commit 4fd224c into main Nov 25, 2026
1 check passed
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.

2 participants