|
Packit |
0848f5 |
.TH MPI_Comm_get_parent 3 "11/10/2017" " " "MPI"
|
|
Packit |
0848f5 |
.SH NAME
|
|
Packit |
0848f5 |
MPI_Comm_get_parent \- Return the parent communicator for this process
|
|
Packit |
0848f5 |
.SH SYNOPSIS
|
|
Packit |
0848f5 |
.nf
|
|
Packit |
0848f5 |
int MPI_Comm_get_parent(MPI_Comm *parent)
|
|
Packit |
0848f5 |
.fi
|
|
Packit |
0848f5 |
.SH OUTPUT PARAMETERS
|
|
Packit |
0848f5 |
.PD 0
|
|
Packit |
0848f5 |
.TP
|
|
Packit |
0848f5 |
.B parent
|
|
Packit |
0848f5 |
- the parent communicator (handle)
|
|
Packit |
0848f5 |
.PD 1
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
.SH NOTES
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
If a process was started with
|
|
Packit |
0848f5 |
.I MPI_Comm_spawn
|
|
Packit |
0848f5 |
or
|
|
Packit |
0848f5 |
.I MPI_Comm_spawn_multiple
|
|
Packit |
0848f5 |
,
|
|
Packit |
0848f5 |
.I MPI_Comm_get_parent
|
|
Packit |
0848f5 |
returns the parent intercommunicator of the current
|
|
Packit |
0848f5 |
process. This parent intercommunicator is created implicitly inside of
|
|
Packit |
0848f5 |
.I MPI_Init
|
|
Packit |
0848f5 |
and is the same intercommunicator returned by
|
|
Packit |
0848f5 |
.I MPI_Comm_spawn
|
|
Packit |
0848f5 |
in the parents.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
If the process was not spawned,
|
|
Packit |
0848f5 |
.I MPI_Comm_get_parent
|
|
Packit |
0848f5 |
returns
|
|
Packit |
0848f5 |
.I MPI_COMM_NULL
|
|
Packit |
0848f5 |
\&.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
After the parent communicator is freed or disconnected,
|
|
Packit |
0848f5 |
.I MPI_Comm_get_parent
|
|
Packit |
0848f5 |
returns
|
|
Packit |
0848f5 |
.I MPI_COMM_NULL
|
|
Packit |
0848f5 |
\&.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
.SH THREAD AND INTERRUPT SAFETY
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
This routine is both thread- and interrupt-safe.
|
|
Packit |
0848f5 |
This means that this routine may safely be used by multiple threads and
|
|
Packit |
0848f5 |
from within a signal handler.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
.SH NOTES FOR FORTRAN
|
|
Packit |
0848f5 |
All MPI routines in Fortran (except for
|
|
Packit |
0848f5 |
.I MPI_WTIME
|
|
Packit |
0848f5 |
and
|
|
Packit |
0848f5 |
.I MPI_WTICK
|
|
Packit |
0848f5 |
) have
|
|
Packit |
0848f5 |
an additional argument
|
|
Packit |
0848f5 |
.I ierr
|
|
Packit |
0848f5 |
at the end of the argument list.
|
|
Packit |
0848f5 |
.I ierr
|
|
Packit |
0848f5 |
is an integer and has the same meaning as the return value of the routine
|
|
Packit |
0848f5 |
in C. In Fortran, MPI routines are subroutines, and are invoked with the
|
|
Packit |
0848f5 |
.I call
|
|
Packit |
0848f5 |
statement.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
All MPI objects (e.g.,
|
|
Packit |
0848f5 |
.I MPI_Datatype
|
|
Packit |
0848f5 |
,
|
|
Packit |
0848f5 |
.I MPI_Comm
|
|
Packit |
0848f5 |
) are of type
|
|
Packit |
0848f5 |
.I INTEGER
|
|
Packit |
0848f5 |
in Fortran.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
.SH ERRORS
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
All MPI routines (except
|
|
Packit |
0848f5 |
.I MPI_Wtime
|
|
Packit |
0848f5 |
and
|
|
Packit |
0848f5 |
.I MPI_Wtick
|
|
Packit |
0848f5 |
) return an error value;
|
|
Packit |
0848f5 |
C routines as the value of the function and Fortran routines in the last
|
|
Packit |
0848f5 |
argument. Before the value is returned, the current MPI error handler is
|
|
Packit |
0848f5 |
called. By default, this error handler aborts the MPI job. The error handler
|
|
Packit |
0848f5 |
may be changed with
|
|
Packit |
0848f5 |
.I MPI_Comm_set_errhandler
|
|
Packit |
0848f5 |
(for communicators),
|
|
Packit |
0848f5 |
.I MPI_File_set_errhandler
|
|
Packit |
0848f5 |
(for files), and
|
|
Packit |
0848f5 |
.I MPI_Win_set_errhandler
|
|
Packit |
0848f5 |
(for
|
|
Packit |
0848f5 |
RMA windows). The MPI-1 routine
|
|
Packit |
0848f5 |
.I MPI_Errhandler_set
|
|
Packit |
0848f5 |
may be used but
|
|
Packit |
0848f5 |
its use is deprecated. The predefined error handler
|
|
Packit |
0848f5 |
.I MPI_ERRORS_RETURN
|
|
Packit |
0848f5 |
may be used to cause error values to be returned.
|
|
Packit |
0848f5 |
Note that MPI does
|
|
Packit |
0848f5 |
.B not
|
|
Packit |
0848f5 |
guarentee that an MPI program can continue past
|
|
Packit |
0848f5 |
an error; however, MPI implementations will attempt to continue whenever
|
|
Packit |
0848f5 |
possible.
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
.PD 0
|
|
Packit |
0848f5 |
.TP
|
|
Packit |
0848f5 |
.B MPI_SUCCESS
|
|
Packit |
0848f5 |
- No error; MPI routine completed successfully.
|
|
Packit |
0848f5 |
.PD 1
|
|
Packit |
0848f5 |
.PD 0
|
|
Packit |
0848f5 |
.TP
|
|
Packit |
0848f5 |
.B MPI_ERR_ARG
|
|
Packit |
0848f5 |
- Invalid argument. Some argument is invalid and is not
|
|
Packit |
0848f5 |
identified by a specific error class (e.g.,
|
|
Packit |
0848f5 |
.I MPI_ERR_RANK
|
|
Packit |
0848f5 |
).
|
|
Packit |
0848f5 |
.PD 1
|