Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpi_abort(3) [redhat man page]

MPI_Abort(3)							      LAM/MPI							      MPI_Abort(3)

NAME
MPI_Abort - Terminates MPI execution environment SYNOPSIS
#include <mpi.h> int MPI_Abort(MPI_Comm comm, int errcode) INPUT PARAMETERS
comm - communicator of tasks to abort errcode - error code to return to invoking environment NOTES
Makes a "best attempt" to terminate all MPI processes associated with the communicator comm ; for non-IMPI jobs, this will terminate all processes. MPI_Abort will hang, however, if the LAM daemon on the node on which a rank was running has died. For example, if a node gets powered off in the middle of an MPI run and MPI_Abort is invoked, it may hang trying to contact the LAM daemon on the downed node. In the case of an IMPI job, in addition to terminating all local IMPI procs, this function will also send an abort message to the local IMPI host, which will, in turn send "closing" messages to all the other IMPI hosts. Their behavior upon receipt of these "closing" mes- sages is implementation dependant. If the LAM IMPI host receives a premature "closing" message from a remote IMPI host, it will attempt to continue processing. Any new mes- sages to that host will likely hang, however. 'ERRCODE' IS SPLIT INTO THREE SECTIONS lower 8 bits: error class - . next 8 bits: function upper 16 bits: error code - If the error class is nonzero, the error code is the POSIX return value for the program (i.e., exit(error_code) is eventually called to terminate the program). If the error class is zero, errcode is returned as the POSIX return value for the program. This is mainly because MPI_Abort is used internally in LAM/MPI to abort MPI upon error; LAM packs all three pieces of data into the POSIX return code. Users who wish to return a specific value from the PROGRAM SHOULD USE SOMETHING SIMILAR TO
return ((return_code << 16) + 1); NOTES FOR FORTRAN
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK ) have an additional argument ierr at the end of the argument list. ierr is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the call statement. All MPI objects (e.g., MPI_Datatype , MPI_Comm ) are of type INTEGER in Fortran. MORE INFORMATION
For more information, please see the official MPI Forum web site, which contains the text of both the MPI-1 and MPI-2 standards. These documents contain detailed information about each MPI function (most of which is not duplicated in these man pages). http://www.mpi-forum.org/ ACKNOWLEDGEMENTS
The LAM Team would like the thank the MPICH Team for the handy program to generate man pages ("doctext" from ftp://ftp.mcs.anl.gov/pub/sow- ing/sowing.tar.gz ), the initial formatting, and some initial text for most of the MPI-1 man pages. LOCATION
abort.c LAM
/MPI 6.5.8 11/10/2002 MPI_Abort(3)

Check Out this Related Man Page

MPI_Abort(3)								MPI							      MPI_Abort(3)

NAME
MPI_Abort - Terminates MPI execution environment SYNOPSIS
int MPI_Abort(MPI_Comm comm, int errorcode) INPUT PARAMETERS
comm - communicator of tasks to abort errorcode - error code to return to invoking environment NOTES
Terminates all MPI processes associated with the communicator comm ; in most systems (all to date), terminates all processes. THREAD AND INTERRUPT SAFETY
The user is responsible for ensuring that multiple threads do not try to update the same MPI object from different threads. This routine should not be used from within a signal handler. The MPI standard defined a thread-safe interface but this does not mean that all routines may be called without any thread locks. For example, two threads must not attempt to change the contents of the same MPI_Info object concurrently. The user is responsible in this case for using some mechanism, such as thread locks, to ensure that only one thread at a time makes use of this routine. Because the MPI_Abort routine is intended to ensure that an MPI process (and possibly an entire job), it cannot wait for a thread to release a lock or other mechanism for atomic access. NOTES FOR FORTRAN
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK ) have an additional argument ierr at the end of the argument list. ierr is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the call statement. All MPI objects (e.g., MPI_Datatype , MPI_Comm ) are of type INTEGER in Fortran. 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 guarentee that an MPI program can continue past an error; however, MPI implementations will attempt to continue whenever possible. MPI_SUCCESS - No error; MPI routine completed successfully. LOCATION
abort.c 7/28/2010 MPI_Abort(3)
Man Page