What is MPI_Abort?
MPI library
MPI (Message Passing Interface) is a library that enables you to write parallel programs in C or Fortran77. The library uses commonly available operating system services to create parallel processes and exchange information among these processes.
MPI_Abort
This method terminates the MPI execution environment. It ends all MPI processes associated with the communicator.
Since the function does not wait for atomic access, the user must implement the thread locking mechanism carefully.
Syntax
int MPI_Abort(MPI_Comm comm, int errorcode)
Parameters
-
commis the communicator of the tasks to be aborted. -
errorcodeis the error code provided to the invoking environment for termination.
Return value
The function returns an error if it is unsuccessful. By default, the error aborts the MPI job.
In case of success, it returns MPI_SUCCESS, the value returned upon successful termination of any MPI routine.
Free Resources