Skip to content

Commit

Permalink
Merge pull request #11816 from wzamazon/fix_ompi_param_mpi3_compat
Browse files Browse the repository at this point in the history
runtime/params: set ompi_mpi_compat_mpi3 to true by default
  • Loading branch information
jsquyres authored Jul 12, 2023
2 parents 7b87ae4 + 67a71fc commit 9949e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ompi/runtime/ompi_mpi_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool ompi_async_mpi_finalize = false;
uint32_t ompi_add_procs_cutoff = OMPI_ADD_PROCS_CUTOFF_DEFAULT;
bool ompi_mpi_dynamics_enabled = true;

bool ompi_mpi_compat_mpi3 = false;
bool ompi_mpi_compat_mpi3 = true;

char *ompi_mpi_spc_attach_string = NULL;
bool ompi_mpi_spc_dump_enabled = false;
Expand Down Expand Up @@ -362,7 +362,7 @@ int ompi_mpi_register_params(void)
MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
}

ompi_mpi_compat_mpi3 = false;
ompi_mpi_compat_mpi3 = true;
(void) mca_base_var_register("ompi", "mpi", NULL, "compat_mpi3",
"A boolean value for whether Open MPI operates in MPI-3 compatibility mode; this changes the following behavior: in operations without a handle, errors are raised on (true) MPI_COMM_WORLD (MPI-3 behavior) or (false) MPI_COMM_SELF (MPI-4 behavior).",
MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
Expand Down
4 changes: 2 additions & 2 deletions ompi/runtime/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ OMPI_DECLSPEC extern int ompi_mpi_abort_delay;
/**
* Whether we operate in MPI3 compatibility, or MPI4 mode (default).
*
* true: use MPI3 compatibility
* false: use MPI4 compatibility (default)
* true: use MPI3 compatibility (default)
* false: use MPI4 compatibility
*
* Behavioral changes:
* - errors in operations without a handle are raised on MPI_COMM_WORLD (MPI-3 behavior) or MPI_COMM_SELF (MPI-4 behavior)
Expand Down

0 comments on commit 9949e42

Please sign in to comment.