IBM Books

MPI Subroutine Reference

MPI_ABORT, MPI_Abort

Purpose

Forces all tasks of an MPI job to terminate.

C synopsis

#include <mpi.h>
int MPI_Abort(MPI_Comm comm,int errorcode);

C++ synopsis

#include mpi.h
void MPI::Comm::Abort(int errorcode);

FORTRAN synopsis

include 'mpif.h' or use mpi
MPI_ABORT(INTEGER COMM,INTEGER ERRORCODE,INTEGER IERROR)

Parameters

comm
is the communicator of the tasks to abort. (IN)

errorcode
is the error code returned to the invoking environment. (IN)

IERROR
is the FORTRAN return code. It is always the last argument.

Description

This subroutine forces an MPI program to terminate all tasks in the job. comm currently is not used. All tasks in the job are aborted. The low-order 8 bits of errorcode are returned as an AIX return code.

Notes

MPI_ABORT causes all tasks to exit immediately.

Errors

MPI already finalized

MPI not initialized


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]