table of contents
- testing 5.0.2-2
- unstable 5.0.2-2
- experimental 5.1.0~b1-1
| MPI_T_EVENT_HANDLE_ALLOC(3) | Library Function Manual | MPI_T_EVENT_HANDLE_ALLOC(3) |
NAME¶
MPI_T_event_handle_alloc - Creates a registration handle for the event type identified by event_index
SYNOPSIS¶
int MPI_T_event_handle_alloc(int event_index, void *obj_handle, MPI_Info info,
MPI_T_event_registration *event_registration)
INPUT PARAMETERS¶
event_index
obj_handle
info
OUTPUT PARAMETERS¶
event_registration
DESCRIPTION¶
MPI_T_event_handle_alloc creates a registration handle for an event type and binds it to an MPI object if required.
This routine has local semantics. The obj_handle argument is ignored if MPI_T_EVENT_GET_INFO returned MPI_T_BIND_NO_OBJECT for this event type. The user may pass hints for the handle allocation to the MPI implementation via the info argument. Predefined MPI object handles such as MPI_COMM_WORLD are recommended to be stored in a local variable and the address of that local variable passed to this routine.
THREAD AND INTERRUPT SAFETY¶
This routine is thread-safe. This means that this routine may be safely used by multiple threads without the need for any user-provided thread locks. However, the routine is not interrupt safe. Typically, this is due to the use of memory allocation routines such as 'malloc' or other non-MPICH runtime routines that are themselves not interrupt-safe.
ERRORS¶
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. The error handler may 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. 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; however, MPI implementations will attempt to continue whenever possible.
| 2026-11-14 | MPICH |