MPI_WIN_GET_INFO(3)
๐ MPI_Win_get_info โ hi bestie, welcome to the Open MPI glow-up ๐
okay so this is the MPI_Win_get_info(3) page from the Open MPI manual, and it's genuinely iconic โ it's your little window-info receipts getter. let's get into it โจ
๐ธ NAME ๐ธ
MPI_Win_get_info โ retrieves active window info hints. that's it, that's the whole vibe. it hands you back the hints your window is actually running with ๐
โจ SYNTAX โจ
๐ C Syntax
#include <mpi.h>
int MPI_Win_get_info(MPI_Win win, MPI_Info *info_used)
๐ Fortran Syntax
USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_WIN_GET_INFO(WIN, INFO_USED, IERROR)
INTEGER WIN, INFO_USED, IERROR
๐ Fortran 2008 Syntax
USE mpi_f08
MPI_Win_get_info(win, info_used, ierror)
TYPE(MPI_Win), INTENT(IN) :: win
TYPE(MPI_Info), INTENT(OUT) :: info_used
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
๐ฆ INPUT PARAMETERS ๐ฆ
winโ the window you're pulling active info hints from. like, "hey bestie, what hints are you actually using?" that window. ๐ซถ
๐ OUTPUT PARAMETERS ๐
info_usedโ a brand-new info object, returned with all the active hints on this window. new handle, fresh out the box โจierrorโ Fortran only: the error status, as an integer. keeping it old-school ๐
๐ DESCRIPTION ๐
okay so MPI_Win_get_info returns a new info object containing the hints of the window associated with win. the current setting of all hints actually used by the system related to this window gets returned in info_used โ not the hints you wished for, the ones that are real ๐
and here's the cute little edge case: if no such hints exist, you still get a handle to a newly created info object, it just contains no key/value pair. empty but valid. main character energy, honestly. ๐
โ ๏ธ bestie, listen โ you are responsible for freeinginfo_usedviaMPI_Info_free. don't just leave it lying around, that's not slay, that's a leak ๐ญ
๐ 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. fr fr that's just how it works.
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. full send, no survivors ๐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. polite, hands you the problem back ๐ซถ
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. like, no cap, after an error all bets are off ๐
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. iykyk ๐
๐ง SEE ALSO ๐ง
MPI_Win_set_infoMPI_Win_free
๐ COPYRIGHT ๐
2003-2026, The Open MPI Community
and that's the whole page, bestie โ signed, sealed, and delivered by the Open MPI girlies on Sep 11, 2026. MPI_WIN_GET_INFO(3) out. slay, go free your info object ๐
โจ๐
๐ฆ 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