MPI_WIN_START(3)
π
MPI_Win_start β starts an RMA access epoch for win π
okay so bestie, welcome to the Open MPI manual page for MPI_Win_start β¨ this is the one-sided-communication girlie who opens up an RMA access epoch and honestly? she ate. let's get into it π
πΈ SYNTAX πΈ
π C Syntax
#include <mpi.h>
int MPI_Win_start(MPI_Group group, int assert, MPI_Win win)
π¦ Fortran Syntax
USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_WIN_START(GROUP, ASSERT, WIN, IERROR)
INTEGER GROUP, ASSERT, WIN, IERROR
π§ Fortran 2008 Syntax
USE mpi_f08
MPI_Win_start(group, assert, win, ierror)
TYPE(MPI_Group), INTENT(IN) :: group
INTEGER, INTENT(IN) :: assert
TYPE(MPI_Win), INTENT(IN) :: win
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
β INPUT PARAMETERS β
groupβ the group of target processes, as a handle π these are the lucky processes your RMA calls are allowed to touch.assertβ program assertion, an integer π little hint-y hint you pass along so the library can optimize.winβ the window object, handle edition πͺ
π OUTPUT PARAMETERS π
ierrorβ Fortran only: the error status, an integer π hopefully zero, but you know how it is.
π DESCRIPTION π
okay so here's the vibe: MPI_Win_start is a one-sided MPI communication synchronization call, and what it does is start an RMA access epoch for win β¨ that's the whole gig. main character energy fr.
here's the rules, no cap: RMA calls that you issue on win during this epoch must access only windows at processes in group. and every single process in group has to issue a matching call to MPI_Win_post β like, it's giving mutual commitment, iykyk π«Ά. also, MPI_Win_start is allowed to block until the corresponding MPI_Win_post calls have been executed, but it is not required to β so don't come for her if she doesn't wait around π.
now, the assert argument is used to provide assertions on the context of the call, and those can be used for various optimizations π₯ (peep Section 6.4.4 of the MPI-2 Standard). a value of assert = 0 is always valid β the safe lil default, love that for us. the following assertion value is supported:
MPI_MODE_NOCHECKβ when this value is passed in to this call, the library assumes that the post call on the target has been called, and it is not necessary for the library to check to see if such a call has been made β‘ so it just trusts you. iconic, slightly risky, we respect it.
π ERRORS π
Almost all MPI routines return an error value β C routines as the return result of the function, and Fortran routines in the last argument π noted and memorized bestie.
Before the error value is returned, the current MPI error handler associated with the communication object (e.g., communicator, window, file) is called. If no communication object is associated with the MPI call, then the call is considered attached to MPI_COMM_SELF and will call the associated MPI error handler. When MPI_COMM_SELF is not initialized (i.e., before MPI_Init/MPI_Init_thread, after MPI_Finalize, or when using the Sessions Model exclusively) the error raises the initial error handler π. The initial error handler can be changed by calling MPI_Comm_set_errhandler on MPI_COMM_SELF when using the World model, or the mpi_initial_errhandler CLI argument to mpiexec or info key to MPI_Comm_spawn/MPI_Comm_spawn_multiple. If no other appropriate error handler has been set, then the MPI_ERRORS_RETURN error handler is called for MPI I/O functions and the MPI_ERRORS_ABORT error handler is called for all other MPI functions π«
Open MPI includes three predefined error handlers that can be used:
MPI_ERRORS_ARE_FATALβ causes the program to abort all connected MPI processes π yeah. all of them. dramatic but fair.MPI_ERRORS_ABORTβ an error handler that can be invoked on a communicator, window, file, or session. When called on a communicator, it acts as ifMPI_Abortwas called on that communicator. If called on a window or file, acts as ifMPI_Abortwas called on a communicator containing the group of processes in the corresponding window or file. If called on a session, aborts only the local process πMPI_ERRORS_RETURNβ returns an error code to the application πΈ the polite one.
MPI applications can also implement their own error handlers by calling:
MPI_Comm_create_errhandlerthenMPI_Comm_set_errhandlerMPI_File_create_errhandlerthenMPI_File_set_errhandlerMPI_Session_create_errhandlerthenMPI_Session_set_errhandleror atMPI_Session_initMPI_Win_create_errhandlerthenMPI_Win_set_errhandler
β οΈ note that MPI does not guarantee that an MPI program can continue past an error. so likeβ¦ don't count on it bestie π
See the MPI man page for a full list of MPI error codes π
See the Error Handling section of the MPI-3.1 standard for more information π
π¦ SEE ALSO π¦
MPI_Win_postMPI_Win_complete
π COPYRIGHT π
2003-2026, The Open MPI Community π
and that's the whole page diva β¨ header said MPI_WIN_START(3), the manual's Open MPI (told you at the top π), and the footer was giving version-of-Sep 11, 2026 β so yeah, drop date Sep 11, 2026, MPI_WIN_START(3) energy, and the Open MPI crew said 2003-2026, The Open MPI Community. slay, go start some epochs π
π
π¦ where this page comes from
- arch rolling: openmpi 5.0.11-1 Β· BSD-3-Clause AND LicenseRef-MPICH
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms