Constants(3)

πŸ“¦
version 4.0.2 Β· 3 versions
, in debian bookworm

πŸŽ€ Constants(3) πŸŽ€

okay bestie, so this is the MPI page called Constants(3) and it's literally just the master key to every defined constant MPI has, like the whole vibe dictionary. it's LONG so buckle up πŸ’–


🧚 DATA TYPES 🧚

heads up bestie: the Fortran types are only for Fortran programs and the C types are only for C programs. like, it is genuinely an error to use MPI_INT for a Fortran INTEGER. do not do it. no cap.

also, datatypes are of type MPI_Datatype in C, type INTEGER in Fortran, and Type(MPI_Datatype) in Fortran08. slay 🫢

πŸ’… C DATATYPES

  • MPI_CHAR β€” char
  • MPI_SIGNED_CHAR β€” signed char
  • MPI_UNSIGNED_CHAR β€” unsigned char
  • MPI_BYTE β€” see the standard; like unsigned char
  • MPI_WCHAR β€” wide character (wchar_t)
  • MPI_SHORT β€” short
  • MPI_UNSIGNED_SHORT β€” unsigned short
  • MPI_INT β€” int
  • MPI_UNSIGNED β€” unsigned int
  • MPI_LONG β€” long
  • MPI_UNSIGNED_LONG β€” unsigned long
  • MPI_LONG_LONG_INT β€” long long
  • MPI_LONG_LONG β€” a synonym for MPI_LONG_LONG_INT
  • MPI_UNSIGNED_LONG_LONG β€” unsigned long long
  • MPI_FLOAT β€” float
  • MPI_DOUBLE β€” double
  • MPI_LONG_DOUBLE β€” long double (some systems may not implement this one, lowkey rude of them)
  • MPI_INT8_T β€” int8_t
  • MPI_INT16_T β€” int16_t
  • MPI_INT32_T β€” int32_t
  • MPI_INT64_T β€” int64_t
  • MPI_UINT8_T β€” uint8_t
  • MPI_UINT16_T β€” uint16_t
  • MPI_UINT32_T β€” uint32_t
  • MPI_UINT64_T β€” uint64_t
  • MPI_C_BOOL β€” _Bool
  • MPI_C_FLOAT_COMPLEX β€” float _Complex
  • MPI_C_COMPLEX β€” float _Complex
  • MPI_C_DOUBLE_COMPLEX β€” double _Complex
  • MPI_C_LONG_DOUBLE_COMPLEX β€” long double _Complex

the next lil squad are the datatypes for the MPI functions MPI_MAXLOC and MPI_MINLOC πŸ’…

  • MPI_FLOAT_INT β€” struct { float, int }
  • MPI_LONG_INT β€” struct { long, int }
  • MPI_DOUBLE_INT β€” struct { double, int }
  • MPI_SHORT_INT β€” struct { short, int }
  • MPI_2INT β€” struct { int, int }
  • MPI_LONG_DOUBLE_INT β€” struct { long double, int }; this one is an optional type, and it may be set to MPI_DATATYPE_NULL

πŸ¦‹ Special datatypes for C and Fortran

  • MPI_PACKED β€” for MPI_Pack and MPI_Unpack
  • MPI_UB β€” for MPI_Type_struct; an upper-bound indicator. Removed in MPI 3
  • MPI_LB β€” for MPI_Type_struct; a lower-bound indicator. Removed in MPI 3

🌸 FORTRAN DATATYPES

  • MPI_REAL β€” REAL
  • MPI_INTEGER β€” INTEGER
  • MPI_LOGICAL β€” LOGICAL
  • MPI_DOUBLE_PRECISION β€” DOUBLE PRECISION
  • MPI_COMPLEX β€” COMPLEX
  • MPI_DOUBLE_COMPLEX β€” complex*16 (or complex*32) where supported

the following datatypes are optional:

  • MPI_INTEGER1 β€” integer*1 if supported
  • MPI_INTEGER2 β€” integer*2 if supported
  • MPI_INTEGER4 β€” integer*4 if supported
  • MPI_INTEGER8 β€” integer*8 if supported
  • MPI_INTEGER16 β€” integer*16 if supported
  • MPI_REAL4 β€” real*4 if supported
  • MPI_REAL8 β€” real*8 if supported
  • MPI_REAL16 β€” real*16 if supported
  • MPI_COMPLEX8 β€” complex*8 if supported
  • MPI_COMPLEX16 β€” complex*16 if supported
  • MPI_COMPLEX32 β€” complex*32 if supported

and these are the datatypes for the MPI functions MPI_MAXLOC and MPI_MINLOC. in Fortran, these datatypes always consist of two elements of the same Fortran type:

  • MPI_2INTEGER β€” INTEGER,INTEGER
  • MPI_2REAL β€” REAL, REAL
  • MPI_2DOUBLE_PRECISION β€” DOUBLE PRECISION, DOUBLE PRECISION

πŸ’œ MPI Datatypes for MPI Types

  • MPI_AINT β€” datatype for an MPI_Aint
  • MPI_OFFSET β€” datatype for an MPI_Offset
  • MPI_COUNT β€” datatype for an MPI_Count

⭐ MPI DATATYPE COMBINER NAMES ⭐

  • MPI_COMBINER_NAMED β€” a named predefined datatype
  • MPI_COMBINER_DUP β€” MPI_TYPE_DUP
  • MPI_COMBINER_CONTIGUOUS β€” MPI_TYPE_CONTIGUOUS
  • MPI_COMBINER_VECTOR β€” MPI_TYPE_VECTOR
  • MPI_COMBINER_HVECTOR_INTEGER β€” Removed in MPI-3
  • MPI_COMBINER_HVECTOR β€” MPI_TYPE_CREATE_HVECTOR
  • MPI_COMBINER_INDEXED β€” MPI_TYPE_INDEXED
  • MPI_COMBINER_HINDEXED_INTEGER β€” Removed in MPI-3
  • MPI_COMBINER_HINDEXED β€” MPI_TYPE_CREATE_HINDEXED
  • MPI_COMBINER_INDEXED_BLOCK β€” MPI_TYPE_CREATE_INDEXED_BLOCK
  • MPI_COMBINER_STRUCT_INTEGER β€” Removed in MPI-3
  • MPI_COMBINER_STRUCT β€” MPI_TYPE_CREATE_STRUCT
  • MPI_COMBINER_SUBARRAY β€” MPI_TYPE_CREATE_SUBARRAY
  • MPI_COMBINER_DARRAY β€” MPI_TYPE_CREATE_DARRAY
  • MPI_COMBINER_F90_REAL β€” MPI_TYPE_CREATE_F90_REAL
  • MPI_COMBINER_F90_COMPLEX β€” MPI_TYPE_CREATE_F90_COMPLEX
  • MPI_COMBINER_F90_INTEGER β€” MPI_TYPE_CREATE_F90_INTEGER
  • MPI_COMBINER_RESIZED β€” MPI_TYPE_CREATE_RESIZED
  • MPI_COMBINER_HINDEXED_BLOCK β€” MPI_TYPE_CREATE_HINDEXED_BLOCK

🌈 MPI DATATYPE TYPE CLASSES 🌈

these are the MPI type classes used with routines that return Fortran types with a defined precision and range:

  • MPI_TYPECLASS_REAL β€” REAL
  • MPI_TYPECLASS_INTEGER β€” INTEGER
  • MPI_TYPECLASS_COMPLEX β€” COMPLEX

πŸ¦‹ MPI DARRAY AND SUBARRAY VALUES πŸ¦‹

these values are used to create a datatype with the DARRAY and SUBARRAY constructors, iconic behaviour tbh:

  • MPI_ORDER_C β€” row-major order (as used by C)
  • MPI_ORDER_FORTRAN β€” column-major order (as used by Fortran)
  • MPI_DISTRIBUTE_BLOCK β€” block distribution
  • MPI_DISTRIBUTE_CYCLIC β€” cyclic distribution
  • MPI_DISTRIBUTE_NONE β€” this dimension is not distributed
  • MPI_DISTRIBUTE_DFLT_DARG β€” use the default distribution

πŸ’œ COMMUNICATORS πŸ’œ

communicators are of type MPI_Comm in C, INTEGER in Fortran, and Type(MPI_Comm) in Fortran08 πŸ’–

  • MPI_COMM_WORLD β€” contains all of the processes
  • MPI_COMM_SELF β€” contains only the calling process

πŸ“ KIND OF COMMUNICATOR FOR 'MPI_COMM_SPLIT_TYPE' πŸ“

  • MPI_COMM_TYPE_SHARED β€” all processes that can share memory are grouped into the same communicator

πŸ‘‘ GROUPS πŸ‘‘

groups are of type MPI_Group in C, INTEGER in Fortran, and Type(MPI_Group) in Fortran08 ✨

  • MPI_GROUP_EMPTY β€” a group containing no members

πŸ”₯ RESULTS OF THE COMPARE OPERATIONS ON GROUPS AND COMMUNICATORS πŸ”₯

  • MPI_IDENT β€” identical
  • MPI_CONGRUENT β€” (only for MPI_COMM_COMPARE) the groups are identical
  • MPI_SIMILAR β€” same members, but in a different order
  • MPI_UNEQUAL β€” different

✨ COLLECTIVE OPERATIONS ✨

so the collective combination operations (like MPI_REDUCE, MPI_ALLREDUCE, MPI_REDUCE_SCATTER, and MPI_SCAN) all take a combination operation. this operation is of type MPI_Op in C and of type INTEGER in Fortran. and here are the predefined ones bestie:

  • MPI_MAX β€” return the maximum
  • MPI_MIN β€” return the minimum
  • MPI_SUM β€” return the sum
  • MPI_PROD β€” return the product
  • MPI_LAND β€” return the logical and
  • MPI_BAND β€” return the bitwise and
  • MPI_LOR β€” return the logical or
  • MPI_BOR β€” return the bitwise of
  • MPI_LXOR β€” return the logical exclusive or
  • MPI_BXOR β€” return the bitwise exclusive or
  • MPI_MINLOC β€” return the minimum and the location (actually, the value of the second element of the structure where the minimum of the first is found)
  • MPI_MAXLOC β€” return the maximum and the location
  • MPI_REPLACE β€” replace b with a
  • MPI_NO_OP β€” perform no operation

πŸ’€ NOTES ON COLLECTIVE OPERATIONS πŸ’€

okay this part is the serious part, listen up.

the reduction functions (MPI_Op) do not return an error value. as a result, if the functions detect an error, all they can do is either call MPI_Abort or silently skip the problem πŸ™ˆ. so if you change the error handler from MPI_ERRORS_ARE_FATAL to something else β€” for example, MPI_ERRORS_RETURN β€” then no error may be indicated.

the reason for this is the performance problems in ensuring that all collective routines return the same error value.

also, not all datatypes are valid for these functions. for example, MPI_COMPLEX is not valid for MPI_MAX and MPI_MIN. and on top of that, the MPI 1.1 standard did not include the C types MPI_CHAR and MPI_UNSIGNED_CHAR among the lists of arithmetic types for operations like MPI_SUM. however, since the C type char is an integer type (like short), it should have been included. the MPI Forum will probably include char and unsigned char as a clarification to MPI 1.1; until then, users are advised that MPI implementations may not accept MPI_CHAR and MPI_UNSIGNED_CHAR as valid datatypes for MPI_SUM, MPI_PROD, etc. MPICH does allow these datatypes.


🌟 PERMANENT KEY VALUES 🌟

these are the same in C and Fortran πŸ’…

  • MPI_TAG_UB β€” largest tag value
  • MPI_HOST β€” rank of process that is host, if any
  • MPI_IO β€” rank of process that can do I/O
  • MPI_WTIME_IS_GLOBAL β€” has value 1 if MPI_WTIME is globally synchronized
  • MPI_UNIVERSE_SIZE β€” number of available processes. see the standard for a description of limitations on this value
  • MPI_LASTUSEDCODE β€” last used MPI error code (check - code or class?)
  • MPI_APPNUM β€” application number, starting from 0. see the standard for MPI_COMM_SPAWN_MULTIPLE and mpiexec for details

🫢 NULL OBJECTS 🫢

the whole ✨nothing✨ collection, all the nulls you could ever need:

  • MPI_COMM_NULL β€” null communicator
  • MPI_OP_NULL β€” null operation
  • MPI_GROUP_NULL β€” null group
  • MPI_DATATYPE_NULL β€” null datatype
  • MPI_REQUEST_NULL β€” null request
  • MPI_ERRHANDLER_NULL β€” null error handler
  • MPI_WIN_NULL β€” null window handle
  • MPI_FILE_NULL β€” null file handle
  • MPI_INFO_NULL β€” null info handle
  • MPI_MESSAGE_NULL β€” null message handle
  • MPI_ARGV_NULL β€” empty ARGV value for spawn commands
  • MPI_ARGVS_NULL β€” empty ARGV array for spawn-multiple command
  • MPI_T_ENUM_NULL β€” null MPI_T enum
  • MPI_T_CVAR_HANDLE_NULL β€” null MPI_T control variable handle
  • MPI_T_PVAR_HANDLE_NULL β€” null MPI_T performance variable handle
  • MPI_T_PVAR_SESSION_NULL β€” null MPI_T performance variable session handle

✨ PREDEFINED CONSTANTS ✨

okay bestie these are the little built-in numbers and magic values that MPI hands you, and honestly? iconic. lowkey the glue of the whole thing πŸ’…

  • MPI_MAX_PROCESSOR_NAME β€” the maximum length of a name that MPI_GET_PROCESSOR_NAME will hand back to you.
  • MPI_MAX_ERROR_STRING β€” the maximum length of the string returned by MPI_ERROR_STRING.
  • MPI_MAX_LIBRARY_VERSION_STRING β€” the maximum length of the string returned by MPI_GET_LIBRARY_VERSION_STRING ???
  • MPI_MAX_PORT_NAME β€” the maximum length of a port. yes, ports have a vibe limit too 🫢
  • MPI_MAX_OBJECT_NAME β€” the maximum length of an object (?)
  • MPI_MAX_INFO_KEY β€” the maximum length of an info key.
  • MPI_MAX_INFO_VAL β€” the maximum length of an info value.
  • MPI_UNDEFINED β€” used by many routines to indicate an undefined or unknown integer value. it's the "idk" of integers fr fr πŸ’€
  • MPI_UNDEFINED_RANK β€” unknown rank.
  • MPI_KEYVAL_INVALID β€” a special keyval you can use to detect uninitialized keyvals. so you don't get got by a stale one πŸ™ˆ
  • MPI_BSEND_OVERHEAD β€” add this to the size of a MPI_BSEND buffer for each outstanding message.
  • MPI_PROC_NULL β€” this rank may be used to send or receive from no-one. literally nobody. ghosted but on purpose πŸ‘»
  • MPI_ANY_SOURCE β€” in a receive, accept a message from anyone.
  • MPI_ANY_TAG β€” in a receive, accept a message with any tag value.
  • MPI_BOTTOM β€” may be used to indicate the bottom of the address space.
  • MPI_IN_PLACE β€” a special location for buffer in some collective communication routines.
  • MPI_VERSION β€” numeric value of MPI version (e.g., 3).
  • MPI_SUBVERSION β€” numeric value of MPI subversion (e.g., 1).

🌈 TOPOLOGY TYPES 🌈

  • MPI_CART β€” Cartesian grid.
  • MPI_GRAPH β€” general graph.
  • MPI_DIST_GRAPH β€” general distributed graph.

πŸ¦‹ SPECIAL VALUES FOR DISTRIBUTED GRAPH πŸ¦‹

  • MPI_UNWEIGHTED β€” indicates that the edges are unweighted.
  • MPI_WEIGHTS_EMPTY β€” special address that indicates no array of weights information.

πŸŽ€ FILE MODES πŸŽ€

the moment you open a file in MPI you gotta tell it how you wanna open it, and these are the lil flags for that πŸ’–

  • MPI_MODE_RDONLY β€” read only.
  • MPI_MODE_RDWR β€” read and write.
  • MPI_MODE_WRONLY β€” write only.
  • MPI_MODE_CREATE β€” create the file if it does not exist.
  • MPI_MODE_EXCL β€” it is an error if creating a file that already exists. no doubles allowed, periodt.
  • MPI_MODE_DELETE_ON_CLOSE β€” delete the file on close. it's giving ghosting the filesystem ✨
  • MPI_MODE_UNIQUE_OPEN β€” the file will not be concurrently opened elsewhere.
  • MPI_MODE_APPEND β€” the initial position of all file pointers is at the end of the file.
  • MPI_MODE_SEQUENTIAL β€” file will only be accessed sequentially.

🌸 FILE DISPLACEMENT 🌸

  • MPI_DISPLACEMENT_CURRENT β€” use with files opened with mode MPI_MODE_SEQUENTIAL in calls to MPI_FILE_SET_VIEW.

⭐ FILE POSITIONING ⭐

  • MPI_SEEK_SET β€” set the pointer to offset.
  • MPI_SEEK_CUR β€” set the pointer to the current position plus offset.
  • MPI_SEEK_END β€” set the pointer to the end of the file plus offset.

πŸ‘‘ WINDOW ATTRIBUTES πŸ‘‘

  • MPI_WIN_BASE β€” window base address.
  • MPI_WIN_SIZE β€” window size, in bytes.
  • MPI_WIN_DISP_UNIT β€” displacement unit associated with the window.
  • MPI_WIN_CREATE_FLAVOR β€” how the window was created.
  • MPI_WIN_MODEL β€” memory model for window.

πŸ’œ WINDOW FLAVORS πŸ’œ

  • MPI_WIN_FLAVOR_CREATE β€” window was created with MPI_WIN_CREATE.
  • MPI_WIN_FLAVOR_ALLOCATE β€” window was created with MPI_WIN_ALLOCATE.
  • MPI_WIN_FLAVOR_DYNAMIC β€” window was created with MPI_WIN_CREATE_DYNAMIC.
  • MPI_WIN_FLAVOR_SHARED β€” window was created with MPI_WIN_ALLOCATE_SHARED.

🧚 WINDOW MEMORY MODEL 🧚

  • MPI_WIN_SEPARATE β€” separate public and private copies of window memory.
  • MPI_WIN_UNIFIED β€” the public and private copies are identical (by which we mean that updates are eventually observed without additional RMA operations).

πŸ”₯ WINDOW LOCK TYPES πŸ”₯

  • MPI_LOCK_EXCLUSIVE β€” only one process at a time will execute accesses within the lock. main character energy, nobody else gets in πŸ’…
  • MPI_LOCK_SHARED β€” not exclusive; multiple processes may execute accesses within the lock. share the spotlight besties 🫢

🌟 WINDOW ASSERTIONS 🌟

see section 11.5 in MPI 3.1 for a detailed description of each of these assertion values. fr, go read it if you want the deep lore.
  • MPI_MODE_NOCHECK β€” the matching calls to MPI_WIN_POST or MPI_WIN_START have already completed, or no process holds or will attempt to acquire, a conflicting lock.
  • MPI_MODE_NOSTORE β€” the local window has not been updated by stores since the last synchronization.
  • MPI_MODE_NOPUT β€” the local window will not be updated by put or accumulate until the next synchronization.
  • MPI_MODE_NOPRECEDE β€” the fence does not complete any locally issued RMA calls.
  • MPI_MODE_NOSUCCEED β€” the fence does not start any locally issued RMA calls.

πŸ“ PREDEFINED INFO OBJECT πŸ“

  • MPI_INFO_ENV β€” contains the execution environment.

πŸ’€ MPI STATUS πŸ’€

the MPI_Status datatype is a structure in C. the three elements for use by programmers are:

  • MPI_SOURCE β€” who sent the message.
  • MPI_TAG β€” what tag the message was sent with.
  • MPI_ERROR β€” any error return (only when the error returned by the routine has error class MPI_ERR_IN_STATUS).

and then the two iconic little shortcuts:

  • MPI_STATUS_IGNORE β€” ignore a single MPI_Status argument.
  • MPI_STATUSES_IGNORE β€” ignore an array of MPI_Status.

πŸ™ˆ SPECIAL VALUE FOR ERROR CODES ARRAY πŸ™ˆ

  • MPI_ERRCODES_IGNORE β€” ignore an array of error codes.

✨ MPI_T CONSTANTS ✨

okay this section is a lot but every single one matters bestie, no skimming πŸŽ€

verbosity levels

  • MPI_T_VERBOSITY_USER_BASIC β€” basic information of interest to users.
  • MPI_T_VERBOSITY_USER_DETAIL β€” detailed information of interest to users.
  • MPI_T_VERBOSITY_USER_ALL β€” all remaining information of interest to users.
  • MPI_T_VERBOSITY_TUNER_BASIC β€” basic information required for tuning.
  • MPI_T_VERBOSITY_TUNER_DETAIL β€” detailed information required for tuning.
  • MPI_T_VERBOSITY_TUNER_ALL β€” all remaining information required for tuning.
  • MPI_T_VERBOSITY_MPIDEV_BASIC β€” basic information for MPI implementors.
  • MPI_T_VERBOSITY_MPIDEV_DETAIL β€” detailed information for MPI implementors.
  • MPI_T_VERBOSITY_MPIDEV_ALL β€” all remaining information for MPI implementors.

binding targets

  • MPI_T_BIND_NO_OBJECT β€” applies globally to entire MPI process.
  • MPI_T_BIND_MPI_COMM β€” MPI communicators.
  • MPI_T_BIND_MPI_DATATYPE β€” MPI datatypes.
  • MPI_T_BIND_MPI_ERRHANDLER β€” MPI error handlers.
  • MPI_T_BIND_MPI_FILE β€” MPI file handles.
  • MPI_T_BIND_MPI_GROUP β€” MPI groups.
  • MPI_T_BIND_MPI_OP β€” MPI reduction operators.
  • MPI_T_BIND_MPI_REQUEST β€” MPI requests.
  • MPI_T_BIND_MPI_WIN β€” MPI windows for one-sided communication.
  • MPI_T_BIND_MPI_MESSAGE β€” MPI message object.
  • MPI_T_BIND_MPI_INFO β€” MPI info object.

scopes

  • MPI_T_SCOPE_CONSTANT β€” read-only, value is constant.
  • MPI_T_SCOPE_READONLY β€” read-only, cannot be written, but can change.
  • MPI_T_SCOPE_LOCAL β€” may be writeable, writing is a local operation.
  • MPI_T_SCOPE_GROUP β€” may be writeable, must be done to a group of processes, all processes in a group must be set to consistent values.
  • MPI_T_SCOPE_GROUP_EQ β€” may be writeable, must be done to a group of processes, all processes in a group must be set to the same value.
  • MPI_T_SCOPE_ALL β€” may be writeable, must be done to all processes, all connected processes must be set to consistent values.
  • MPI_T_SCOPE_ALL_EQ β€” may be writeable, must be done to all processes, all connected processes must be set to the same value.

pvar classes

  • MPI_T_PVAR_CLASS_STATE β€” set of discrete states (MPI_INT).
  • MPI_T_PVAR_CLASS_LEVEL β€” utilization level of a resource.
  • MPI_T_PVAR_CLASS_SIZE β€” size of a resource.
  • MPI_T_PVAR_CLASS_PERCENTAGE β€” percentage utilization of a resource.
  • MPI_T_PVAR_CLASS_HIGHWATERMARK β€” high watermark of a resource.
  • MPI_T_PVAR_CLASS_LOWWATERMARK β€” low watermark of a resource.
  • MPI_T_PVAR_CLASS_COUNTER β€” number of occurrences of an event.
  • MPI_T_PVAR_CLASS_AGGREGATE β€” aggregate value over an event (e.g., sum of all memory allocations).
  • MPI_T_PVAR_CLASS_TIMER β€” aggretate time spent executing event.
  • MPI_T_PVAR_CLASS_GENERIC β€” used for any other time of performance variable.

🌈 THREAD LEVELS 🌈

  • MPI_THREAD_SINGLE β€” only one thread executes.
  • MPI_THREAD_FUNNELED β€” only the main thread makes MPI calls.
  • MPI_THREAD_SERIALIZED β€” only one thread at a time makes MPI calls.
  • MPI_THREAD_MULTIPLE β€” multiple threads may make MPI calls.

πŸŽ€ SPECIAL MPI TYPES AND FUNCTIONS πŸŽ€

  • MPI_Aint β€” C type that holds any valid address.
  • MPI_Count β€” C type that holds any valid count.
  • MPI_Offset β€” C type that holds any valid file offset.
  • MPI_Handler_function β€” C function for handling errors (see MPI_Errhandler_create).
  • MPI_User_function β€” C function to combine values (see collective operations and MPI_Op_create).
  • MPI_Copy_function β€” function to copy attributes (see MPI_Keyval_create).
  • MPI_Delete_function β€” function to delete attributes (see MPI_Keyval_create).
  • MPI_ERRORS_ARE_FATAL β€” error handler that forces exit on error.
  • MPI_ERRORS_RETURN β€” error handler that returns error codes (as value of MPI routine in C and through last argument in Fortran).
  • MPI_ERRORS_ABORT β€” error handler that forces exit on error (only aborts local process if the error handler is invoked on a session).

πŸ’œ MPI ATTRIBUTE DEFAULT FUNCTIONS πŸ’œ

  • MPI_COMM_NULL_COPY_FN β€” predefined attribute copy function for communicators.
  • MPI_COMM_NULL_DELETE_FN β€” predefined attribute delete function for communicators.
  • MPI_COMM_DUP_FN β€” predefined attribute duplicate function for communicators.
  • MPI_WIN_NULL_COPY_FN β€” predefined attribute copy function for windows.
  • MPI_WIN_NULL_DELETE_FN β€” predefined attribute delete function for windows.
  • MPI_WIN_DUP_FN β€” predefined attribute duplicate function for windows.
  • MPI_TYPE_NULL_COPY_FN β€” predefined attribute copy function for datatypes.
  • MPI_TYPE_NULL_DELETE_FN β€” predefined attribute delete function for datatypes.
  • MPI_TYPE_DUP_FN β€” predefined attribute duplicate function for datatypes.

🧚 MPI-1 ATTRIBUTE DEFAULT FUNCTIONS 🧚

  • MPI_NULL_COPY_FN β€” predefined copy function.
  • MPI_NULL_DELETE_FN β€” predefined delete function.
  • MPI_DUP_FN β€” predefined duplication function.

πŸ’€ MPI ERROR CLASSES πŸ’€

okay bestie, this is the big one β€” every single error class MPI can throw at you. when a call goes wrong, this is the value it hands back. memorize the vibes, not the list, and you're golden ✨

  • MPI_SUCCESS β€” the good one πŸŽ€ successful return code, no drama, no notes
  • MPI_ERR_BUFFER β€” that buffer pointer is invalid, hun
  • MPI_ERR_COUNT β€” the count argument? invalid, bestie
  • MPI_ERR_TYPE β€” invalid datatype argument
  • MPI_ERR_TAG β€” invalid tag argument
  • MPI_ERR_COMM β€” invalid communicator
  • MPI_ERR_RANK β€” invalid rank
  • MPI_ERR_ROOT β€” invalid root
  • MPI_ERR_GROUP β€” a null group got passed to a function 😭
  • MPI_ERR_OP β€” invalid operation
  • MPI_ERR_TOPOLOGY β€” invalid topology
  • MPI_ERR_DIMS β€” illegal dimension argument
  • MPI_ERR_ARG β€” invalid argument
  • MPI_ERR_UNKNOWN β€” unknown error, the mystery box of errors 🫣
  • MPI_ERR_TRUNCATE β€” message got truncated on receive, oop
  • MPI_ERR_OTHER β€” some other error; use Error_string to find out what
  • MPI_ERR_INTERN β€” internal error code (not your fault, fr fr)
  • MPI_ERR_IN_STATUS β€” go look in the status for the actual error value
  • MPI_ERR_PENDING β€” pending request, it's still cooking ⏳
  • MPI_ERR_REQUEST β€” invalid mpi_request handle
  • MPI_ERR_ACCESS β€” permission denied πŸ’…
  • MPI_ERR_AMODE β€” something's up with the amode you passed to MPI_FILE_OPEN
  • MPI_ERR_BAD_FILE β€” invalid file name (like, the path name is too long, bestie)
  • MPI_ERR_CONVERSION β€” an error happened inside a user supplied data conversion function
  • MPI_ERR_DUP_DATAREP β€” the conversion functions could not be registered because a data representation identifier that was already defined got passed to MPI_REGISTER_DATAREP πŸ™ˆ
  • MPI_ERR_FILE_EXISTS β€” file exists already
  • MPI_ERR_FILE_IN_USE β€” file operation could not be completed, because the file is currently open by some process
  • MPI_ERR_FILE β€” invalid file handle
  • MPI_ERR_IO β€” some other I/O error
  • MPI_ERR_NO_SPACE β€” not enough space
  • MPI_ERR_NO_SUCH_FILE β€” file does not exist
  • MPI_ERR_READ_ONLY β€” read-only file or file system
  • MPI_ERR_UNSUPPORTED_DATAREP β€” unsupported datarep got passed to MPI_FILE_SET_VIEW
  • MPI_ERR_INFO β€” invalid info argument
  • MPI_ERR_INFO_KEY β€” key is longer than MPI_MAX_INFO_KEY
  • MPI_ERR_INFO_VALUE β€” value is longer than MPI_MAX_INFO_VAL
  • MPI_ERR_INFO_NOKEY β€” invalid key passed to MPI_INFO_DELETE
  • MPI_ERR_NAME β€” invalid service name passed to MPI_LOOKUP_NAME
  • MPI_ERR_NO_MEM β€” Alloc_mem could not allocate memory 😭
  • MPI_ERR_NOT_SAME β€” collective argument isn't identical on all processes, or collective routines got called in a different order by different processes
  • MPI_ERR_PORT β€” invalid port name passed to MPI_COMM_CONNECT
  • MPI_ERR_QUOTA β€” quota exceeded
  • MPI_ERR_SERVICE β€” invalid service name passed to MPI_UNPUBLISH_NAME
  • MPI_ERR_SPAWN β€” error in spawning processes
  • MPI_ERR_UNSUPPORTED_OPERATION β€” unsupported operation, like seeking on a file that only supports sequential access
  • MPI_ERR_WIN β€” invalid win argument
  • MPI_ERR_BASE β€” invalid base passed to MPI_FREE_MEM
  • MPI_ERR_LOCKTYPE β€” invalid locktype argument
  • MPI_ERR_KEYVAL β€” erroneous attribute key
  • MPI_ERR_RMA_CONFLICT β€” conflicting accesses to window
  • MPI_ERR_RMA_SYNC β€” wrong synchronization of RMA calls
  • MPI_ERR_SIZE β€” invalid size argument
  • MPI_ERR_DISP β€” invalid disp argument
  • MPI_ERR_ASSERT β€” invalid assert argument
  • MPI_ERR_RMA_RANGE β€” target memory is not part of the window (and if the window was created with MPI_WIN_CREATE_DYNAMIC, then the target memory is not attached)
  • MPI_ERR_RMA_ATTACH β€” memory cannot be attached (like, because of resource exhaustion)
  • MPI_ERR_RMA_SHARED β€” memory cannot be shared (like, some process in the group of the specified communicator cannot expose shared memory)
  • MPI_ERR_RMA_FLAVOR β€” the passed window has the wrong flavor for the function that got called
  • MPI_ERR_LASTCODE β€” last error code, always at the end, periodt

✨ ERROR CODES FOR MPI_T ✨

these ones are the tool-interface edition, for when you're poking at MPI's guts with MPI_T calls 🧚

  • MPI_T_ERR_MEMORY β€” out of memory
  • MPI_T_ERR_NOT_INITIALIZED β€” interface not initialized
  • MPI_T_ERR_CANNOT_INIT β€” interface is not in the state where it can be initialized
  • MPI_T_ERR_INVALID_INDEX β€” the index is invalid or has been deleted
  • MPI_T_ERR_INVALID_HANDLE β€” the handle is invalid
  • MPI_T_ERR_OUT_OF_HANDLES β€” no more handles available
  • MPI_T_ERR_OUT_OF_SESSIONS β€” no more sessions available
  • MPI_T_ERR_INVALID_SESSION β€” the session argument is not valid
  • MPI_T_ERR_CVAR_SET_NOT_NOW β€” the cvar cannot be set at this moment
  • MPI_T_ERR_CVAR_SET_NEVER β€” the cvar cannot be set until the end of execution
  • MPI_T_ERR_PVAR_NO_STARTSTOP β€” the pvar can't be started or stopped
  • MPI_T_ERR_PVAR_NO_WRITE β€” the pvar can't be written or reset
  • MPI_T_ERR_PVAR_NO_ATOMIC β€” the pvar can't be R/W atomically
  • MPI_T_ERR_INVALID_NAME β€” name doesn't match
  • MPI_T_ERR_INVALID β€” invalid use of the interface, or bad parameter value(s)

and that's the whole constants list, bestie β€” you made it to the end of part 3 of 3 🫢 this page is from the Constants(3) manpage, dated 2/21/2022, and it was absolutely giving "reference material that ate" πŸ’… go forth and pass the right constants, you icon πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from