What is MPI_Comm_delete_attr_function?
MPI library
MPI, short for Message Passing Interface, is a library that allows you to write parallel programs in Fortran77 or C. The library uses common operating system services to exchange information among the parallel processes it creates.
MPI_Comm_delete_attr_function
This method is a callback function for caching on communicators. It is invoked when a communicator is deleted by MPI_COMM_FREE or MPI_COMM_DELETE_ATTR functions.
Syntax
int MPI_Comm_delete_attr_function( MPI_Comm comm, int comm_keyval, void *attribute_val,void *extra_state );
Parameters
The copy callback function is called for each key value in oldcomm in an arbitrary order. Each call to the copy callback is made with a key value and its associated attribute.
-
commis the communicator object describing a group of processes. In many applications, various processes work together, and a communicator describes the processes that a routine initiates. -
comm_keyvalis the key value returned by theMPI_Comm_create_keyvalmethod. -
attribute_val_inis the pointer to attribute value. -
extra_stateis an optional argument to duplicate the extra state.
Return value
If unsuccessful, the function returns an error. The error, by default, aborts the MPI job.
In case of success, it returns MPI_SUCCESS- the value returned upon successful termination of any MPI routine.
Free Resources