Skip to content

Replay MPI_COMM_GRID PR#539

Open
ggalloni wants to merge 1 commit into
masterfrom
mpi_comm_grid_cleanup
Open

Replay MPI_COMM_GRID PR#539
ggalloni wants to merge 1 commit into
masterfrom
mpi_comm_grid_cleanup

Conversation

@ggalloni

@ggalloni ggalloni commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Hi @anand-avinash, here I replayed the changes from your #427, but on the current master, as the merging was a bit painful. This is linked to a couple of issues and PRs still open, so it would be nice to tackle it at some point.

Let me know what you think and if I can give any further help in completing the work.

Comment from Claude:

  • Replays the mpi_cleanup work from PR MPI_COMM_GRID cleanup #427 on top of current master: stop supporting unused MPI processes and drop the MPI_COMM_GRID / COMM_OBS_GRID / COMM_NULL indirection (COMM_OBS_GRID was always MPI.COMM_WORLD). Observation now raises when comm.size != n_blocks_det * n_blocks_time.
  • Adds None-safe no_mueller_hwp()/no_jones_hwp() helpers to fix the Multiple issues when some MPI processes are left unused #364 crashes, and widens the detector-dict annotation so ty passes.

Refs #427, #364, #372.

Replays the mpi_cleanup work from PR #427 on top of current master:
stop supporting unused MPI processes and drop the MPI_COMM_GRID /
COMM_OBS_GRID / COMM_NULL indirection (COMM_OBS_GRID was always
MPI.COMM_WORLD). Observation now raises when
comm.size != n_blocks_det * n_blocks_time. Adds None-safe
no_mueller_hwp()/no_jones_hwp() helpers to fix the #364 crashes, and
widens the detector-dict annotation so `ty` passes.

Refs #427, #364, #372.
@ggalloni ggalloni requested a review from anand-avinash July 7, 2026 05:11
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