MPIX_Delete_error_code(3)
π MPIX_Delete_error_code π
okay bestie, welcome to the MPIX_Delete_error_code(3) page β MPI edition, obviously. this is the little glow-up routine that lets you yeet an error code you made earlier. it's giving cleanup era. β¨
πΈ NAME πΈ
MPIX_Delete_error_code β Delete an MPI error code ποΈβ¨
π SYNOPSIS π
int MPIX_Delete_error_code(int errorcode)
π¦ INPUT PARAMETERS π¦
errorcodeβ the value of the error code to be remoed (integer). yes bestie, "remoed" β that's literally what the original says, we do not gatekeep typos here π . anyway: it's the error code you want gone.
π THREAD AND INTERRUPT SAFETY π
this routine is thread-safe. that means multiple threads can use it at the same time and you do not need to bring your own thread locks. no user-provided locking, none, zero, we're self-sufficient. π«Ά
but β and this is the part where you gotta listen β it is not interrupt safe. π typically that's because it uses memory allocation routines like malloc, or other non-MPICH runtime routines, and those are themselves not interrupt-safe. so like, don't interrupt it mid-glow-up. periodt.
β¨ NOTES FOR FORTRAN β¨
so, all MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK) have an extra argument called ierr at the end of the argument list. ierr is an integer and it means the exact same thing as the return value of the routine in C. π§
also, in Fortran, MPI routines are subroutines, and you invoke them with the call statement. very demure, very Fortran.
and β important β all MPI objects (e.g., MPI_Datatype, MPI_Comm) are of type INTEGER in Fortran. no cap. π
π ERRORS π
all MPI routines (except MPI_Wtime and MPI_Wtick) return an error value. C routines give it back as the value of the function, and Fortran routines give it back in that last argument. before that value comes back to you, the current MPI error handler gets called. π
by default, that error handler aborts the MPI job. like, whole thing, gone. π
the error handler can be changed with MPI_Comm_set_errhandler (for communicators), MPI_File_set_errhandler (for files), and MPI_Win_set_errhandler (for RMA windows). the MPI-1 routine MPI_Errhandler_set may be used but its use is deprecated β old news, bestie. the predefined error handler MPI_ERRORS_RETURN may be used to make error values actually get returned instead. π«Ά
and note: MPI does not guarantee that an MPI program can continue past an error. however, MPI implementations will attempt to continue whenever possible. so like, they try. they really do. π
MPI_SUCCESSβ no error; the MPI routine completed successfully. slay. βMPI_ERR_OTHERβ other error; useMPI_Error_stringto get more info about this error code. go read the receipts. π
and that's the whole page, bestie!! π this was MPIX_Delete_error_code(3) from the MPI manual, dated 2/22/2022. mwah, take care of those error codes, drink water, and go delete something responsibly. πππ¦π
π¦ where this page comes from
- debian bookworm: mpich-doc 4.0.2-3 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms