Skip to content

CIP-0001 Phase 2: MPI deprecation and typemap removal - #38

Merged
lawrennd merged 2 commits into
mainfrom
cip0001-mpi-deprecate
Nov 13, 2026
Merged

lawrennd merged 2 commits into
mainfrom
cip0001-mpi-deprecate

Conversation

@lawrennd

Copy link
Copy Markdown
Member

Summary

  • Remove hand-written numpy_to_MPI_typemap; mpi4py infers datatypes from NumPy buffers (R8).
  • Raise ValueError for mpi_comm with back_constraint=False (silently wrong before) (R9).
  • Emit FutureWarning when mpi_comm is set (R10).
  • Optional CI job: mpiexec -n 2 parity vs serial for a back-constrained model (R11).

Test plan

  • Unit suite: 44 passed, coverage ~74%
  • CI test job green
  • CI mpi job green (OpenMPI + mpi4py)

Refuse silently wrong mpi_comm without back-constraints, warn on use,
let mpi4py infer buffer types, and add an optional 2-rank CI parity job.
Serial vs partitioned MPI LLs only match when they share parameters; the
previous check compared independent random initialisations.
@lawrennd
lawrennd merged commit 5466d33 into main Nov 13, 2026
4 checks passed
@lawrennd
lawrennd deleted the cip0001-mpi-deprecate branch November 13, 2026 19:59
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