MPI_INFO_DELETE(3)
π MPI_INFO_DELETE (Open MPI, section 3) π
okay bestie, so this one is from the Open MPI manual, and honestly? it's a whole little icon. no cap.
β¨ NAME β¨
MPI_Info_delete β deletes a key/value pair from info. that's it, that's the whole vibe. it's the "unfollow" button for your info object π
πΈ SYNTAX πΈ
C Syntax
#include <mpi.h>
int MPI_Info_delete(MPI_Info info, const char *key)
Fortran Syntax
USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_INFO_DELETE(INFO, KEY, IERROR)
INTEGER INFO, IERROR
CHARACTER*(*) KEY
Fortran 2008 Syntax
USE mpi_f08
MPI_Info_delete(info, key, ierror)
TYPE(MPI_Info), INTENT(IN) :: info
CHARACTER(LEN=*), INTENT(IN) :: key
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
the mpi_f08 flavor is giving main character energy ngl, but the older forms still slay π«Ά
π¦ INPUT/OUTPUT PARAMETER π¦
infoβ the Info object (handle). it goes in, it comes out, it's changed. glow up AND glow down at the same time, iconic.
π INPUT PARAMETER π
keyβ the Key (string). this is the thing you're yeeting out ofinfoβ¨
π OUTPUT PARAMETER π
ierrorβ Fortran only: the error status (integer). classic Fortran behavior, always gotta be the one with the extra output parameter π
π DESCRIPTION π
MPI_Info_delete deletes a (key,value) pair from info. the whole duo, both of them, gone. not just the value, not just the key β the pair.
and listen, if key is not defined in info, the call raises an error of class MPI_ERR_INFO_NOKEY. so like... you can't delete what was never there, bestie. vibe check failed π
π₯ ERRORS π₯
so literally almost all MPI routines return an error value β C routines hand it back as the return result of the function, and Fortran routines tuck it into the last argument. periodt.
before the error value is returned, the current MPI error handler associated with the communication object (e.g., communicator, window, file) is called. and 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 the info key to MPI_Comm_spawn/MPI_Comm_spawn_multiple. and 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. iykyk π
Open MPI includes three predefined error handlers that can be used:
MPI_ERRORS_ARE_FATALβ Causes the program to abort all connected MPI processes. like, everybody. gone. π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 chill one. the "just tell me what happened" 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. fr fr, do not assume you can just keep going. π¨
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_Info_createMPI_Info_dupMPI_Info_freeMPI_Info_getMPI_Info_set
the whole info squad, honestly obsessed with them πΈ
π COPYRIGHT π
2003-2026, The Open MPI Community β like, two decades of service, we stan π
and that's the page!! π¦ written by the Open MPI girlies, dated Sep 11, 2026, filed under MPI_INFO_DELETE(3) β go delete those keys, bestie, and don't forget your ierror πβ¨π
π¦ 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