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.
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.
int MPI_Abort(MPI_Comm comm, int errorcode)
comm
is the communicator of the tasks to be aborted.
errorcode
is the error code provided to the invoking environment for termination.
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