MPI(3)

πŸ“¦
version 4.1.6 Β· 3 versions
, in ubuntu noble

✨ NAME ✨

ok so bestie, gather round πŸ’– this is MPI(3) β€” the Open MPI manual page, and yes it's the general-info one, we're talking Open MPI 4.1.6 today. Sit down, get comfy, we're gonna read the whole thing together and it's gonna be great. 🫢


🌈 MPI 🌈

Open MPI is an open source implementation of MPI β€” that's the message-passing interface, the industry-standard specification for writing message-passing programs. And what's message passing, you ask? It's a programming model that hands the programmer explicit control over interprocess communication. Very main character of it, honestly. πŸ’…

The MPI specification was developed by the MPI Forum β€” a whole group chat of software developers, computer vendors, academics, and computer-science researchers whose goal was to develop a standard for writing message-passing programs that would be efficient, flexible, and portable. Ate, no crumbs. πŸ‘‘

The outcome, known as the MPI Standard, was first published in 1993; its most recent version (MPI-2) was published in July 1997. And Open MPI 1.2 includes all MPI 1.2-compliant and MPI 2-compliant routines. iconic behaviour, fr fr.

For more information about Open MPI, see the following URL:

http://www.open-mpi.org

The MPI standards are available at the following URL:

http://www.mpi-forum.org

πŸŽ€ MAN PAGE SYNTAX πŸŽ€

Okay so this part is lowkey a naming-convention flex. Man pages for Open MPI and Open MPI I/O routines are named according to C syntax, which means:

  • they begin with the prefix "MPI_", all in uppercase
  • the first letter following the "MPI_" prefix is also uppercase
  • the rest of the letters in the routine are all lowercase

for example, "MPI_Comm_get_attr". See? Cute, consistent, slay. ✨


πŸ¦‹ ENVIRONMENT πŸ¦‹

To fine-tune your Open MPI environment, you've got two whole options, bestie:

  1. use arguments to the mpirun, orterun, or mpiexec commands, or
  2. use MCA parameters.

For more information on arguments, see the orterun.1 man page.

For a complete listing of MCA parameters and their descriptions, issue the command ompi_info -h or ompi_info -param all all. This information also appears in the FAQ on the Open MPI web site at:

http://www.open-mpi.org/faq/?category=tuning#mca-params

πŸ’€ ERRORS πŸ’€

ok this is the part where we get serious for a sec. 😭

All MPI routines β€” except MPI_Wtime and MPI_Wtick β€” return an error value; C routines as the value of the function, and Fortran routines in the last argument. Before the value is returned, the current MPI error handler is called.

By default, this error handler aborts the MPI job. Not a drill. πŸ™ˆ

The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.

For more information on Open MPI error codes, see mpi.h in the include directory.

Standard error return classes for Open MPI:

  • MPI_SUCCESS β€” 0 β€” Successful return code. πŸ’–
  • MPI_ERR_BUFFER β€” 1 β€” Invalid buffer pointer.
  • MPI_ERR_COUNT β€” 2 β€” Invalid count argument.
  • MPI_ERR_TYPE β€” 3 β€” Invalid datatype argument.
  • MPI_ERR_TAG β€” 4 β€” Invalid tag argument.
  • MPI_ERR_COMM β€” 5 β€” Invalid communicator.
  • MPI_ERR_RANK β€” 6 β€” Invalid rank.
  • MPI_ERR_REQUEST β€” 7 β€” Invalid MPI_Request handle.
  • MPI_ERR_ROOT β€” 8 β€” Invalid root.
  • MPI_ERR_GROUP β€” 9 β€” Null group passed to function.
  • MPI_ERR_OP β€” 10 β€” Invalid operation.
  • MPI_ERR_TOPOLOGY β€” 11 β€” Invalid topology.
  • MPI_ERR_DIMS β€” 12 β€” Illegal dimension argument.
  • MPI_ERR_ARG β€” 13 β€” Invalid argument.
  • MPI_ERR_UNKNOWN β€” 14 β€” Unknown error.
  • MPI_ERR_TRUNCATE β€” 15 β€” Message truncated on receive.
  • MPI_ERR_OTHER β€” 16 β€” Other error; use Error_string.
  • MPI_ERR_INTERN β€” 17 β€” Internal error code.
  • MPI_ERR_IN_STATUS β€” 18 β€” Look in status for error value.
  • MPI_ERR_PENDING β€” 19 β€” Pending request.
  • MPI_ERR_ACCESS β€” 20 β€” Permission denied.
  • MPI_ERR_AMODE β€” 21 β€” Unsupported amode passed to open.
  • MPI_ERR_ASSERT β€” 22 β€” Invalid assert.
  • MPI_ERR_BAD_FILE β€” 23 β€” Invalid file name (for example, path name too long).
  • MPI_ERR_BASE β€” 24 β€” Invalid base.
  • MPI_ERR_CONVERSION β€” 25 β€” An error occurred in a user-supplied data-conversion function.
  • MPI_ERR_DISP β€” 26 β€” Invalid displacement.
  • MPI_ERR_DUP_DATAREP β€” 27 β€” Conversion functions could not be registered because a data representation identifier that was already defined was passed to MPI_REGISTER_DATAREP.
  • MPI_ERR_FILE_EXISTS β€” 28 β€” File exists.
  • MPI_ERR_FILE_IN_USE β€” 29 β€” File operation could not be completed, as the file is currently open by some process.
  • MPI_ERR_FILE β€” 30 β€” Invalid file handle.
  • MPI_ERR_INFO_KEY β€” 31 β€” Illegal info key.
  • MPI_ERR_INFO_NOKEY β€” 32 β€” No such key.
  • MPI_ERR_INFO_VALUE β€” 33 β€” Illegal info value.
  • MPI_ERR_INFO β€” 34 β€” Invalid info object.
  • MPI_ERR_IO β€” 35 β€” I/O error.
  • MPI_ERR_KEYVAL β€” 36 β€” Illegal key value.
  • MPI_ERR_LOCKTYPE β€” 37 β€” Invalid locktype.
  • MPI_ERR_NAME β€” 38 β€” Name not found.
  • MPI_ERR_NO_MEM β€” 39 β€” Memory exhausted.
  • MPI_ERR_NOT_SAME β€” 40 β€” Collective argument not identical on all processes, or collective routines called in a different order by different processes.
  • MPI_ERR_NO_SPACE β€” 41 β€” Not enough space.
  • MPI_ERR_NO_SUCH_FILE β€” 42 β€” File (or directory) does not exist.
  • MPI_ERR_PORT β€” 43 β€” Invalid port.
  • MPI_ERR_QUOTA β€” 44 β€” Quota exceeded.
  • MPI_ERR_READ_ONLY β€” 45 β€” Read-only file system.
  • MPI_ERR_RMA_CONFLICT β€” 46 β€” Conflicting accesses to window.
  • MPI_ERR_RMA_SYNC β€” 47 β€” Erroneous RMA synchronization.
  • MPI_ERR_SERVICE β€” 48 β€” Invalid publish/unpublish.
  • MPI_ERR_SIZE β€” 49 β€” Invalid size.
  • MPI_ERR_SPAWN β€” 50 β€” Error spawning.
  • MPI_ERR_UNSUPPORTED_DATAREP β€” 51 β€” Unsupported datarep passed to MPI_File_set_view.
  • MPI_ERR_UNSUPPORTED_OPERATION β€” 52 β€” Unsupported operation, such as seeking on a file that supports only sequential access.
  • MPI_ERR_WIN β€” 53 β€” Invalid window.
  • MPI_T_ERR_MEMORY β€” 54 β€” Out of memory.
  • MPI_T_ERR_NOT_INITIALIZED β€” 55 β€” Interface not initialized.
  • MPI_T_ERR_CANNOT_INIT β€” 56 β€” Interface not in the state to be initialized.
  • MPI_T_ERR_INVALID_INDEX β€” 57 β€” The enumeration index is invalid.
  • MPI_T_ERR_INVALID_ITEM β€” 58 β€” The item index queried is out of range.
  • MPI_T_ERR_INVALID_HANDLE β€” 59 β€” The handle is invalid.
  • MPI_T_ERR_OUT_OF_HANDLES β€” 60 β€” No more handles available.
  • MPI_T_ERR_OUT_OF_SESSIONS β€” 61 β€” No more sessions available.
  • MPI_T_ERR_INVALID_SESSION β€” 62 β€” Session argument is not a valid session.
  • MPI_T_ERR_CVAR_SET_NOT_NOW β€” 63 β€” Variable cannot be set at this moment.
  • MPI_T_ERR_CVAR_SET_NEVER β€” 64 β€” Variable cannot be set until end of execution.
  • MPI_T_ERR_PVAR_NO_STARTSTOP β€” 65 β€” Variable cannot be started or stopped.
  • MPI_T_ERR_PVAR_NO_WRITE β€” 66 β€” Variable cannot be written or reset.
  • MPI_T_ERR_PVAR_NO_ATOMIC β€” 67 β€” Variable cannot be read and written atomically.
  • MPI_ERR_RMA_RANGE β€” 68 β€” Target memory is not part of the window (in the case of a window created with MPI_WIN_CREATE_DYNAMIC, target memory is not attached).
  • MPI_ERR_RMA_ATTACH β€” 69 β€” Memory cannot be attached (e.g., because of resource exhaustion).
  • MPI_ERR_RMA_FLAVOR β€” 70 β€” Passed window has the wrong flavor for the called function.
  • MPI_ERR_RMA_SHARED β€” 71 β€” Memory cannot be shared (e.g., some process in the group of the specified communicator cannot expose shared memory).
  • MPI_T_ERR_INVALID β€” 72 β€” Invalid use of the interface or bad parameter values(s).
  • MPI_T_ERR_INVALID_NAME β€” 73 β€” The variable or category name is invalid.
  • MPI_ERR_LASTCODE β€” 93 β€” Last error code.

and that's the whole page, bestie πŸŽ€ this was Open MPI version 4.1.6, dated Sep 30, 2023 β€” go forth and message-pass, you absolute icon πŸ’œβœ¨

πŸ“¦ where this page comes from