source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_Comm_get_attr.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 2.7 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\"Copyright (c) 1996 Thinking Machines
3.TH MPI_Comm_get_attr 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Comm_get_attr\fP \- Retrieves attribute value by key.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Comm_get_attr(MPI_Comm \fIcomm\fP, int \fIcomm_keyval\fP,
13        void *\fIattribute_val\fP, int *\fIflag\fP)
14
15.SH Fortran Syntax (see FORTRAN 77 NOTES)
16.nf
17INCLUDE 'mpif.h'
18MPI_COMM_GET_ATTR(\fICOMM, COMM_KEYVAL, ATTRIBUTE_VAL, IERROR\fP)
19        INTEGER \fICOMM, COMM_KEYVAL, IERROR \fP
20        INTEGER(KIND=MPI_ADDRESS_KIND) \fIATTRIBUTE_VAL\fP
21        LOGICAL \fIFLAG\fP
22
23.SH C++ Syntax
24.nf
25#include <mpi.h>
26bool MPI::Comm::Get_attr(int \fIcomm_keyval\fP, void* \fIattribute_val\fP)
27        const
28
29.SH INPUT PARAMETERS
30.ft R
31.TP 1i
32comm
33Communicator to which the attribute is attached (handle).
34.TP 1i
35comm_keyval
36Key value (integer).
37
38.SH OUTPUT PARAMETER
39.ft R
40.TP 1i
41attribute_val
42Attribute value, unless f\fIlag\fP = false.
43.TP 1i
44flag
45False if no attribute is associated with the key (logical).
46.TP 1i
47IERROR
48Fortran only: Error status (integer).
49
50.SH DESCRIPTION
51.ft R
52MPI_Comm_get_attr retrieves an attribute value by key. The call is erroneous if there is no key with value \fIkeyval\fP. On the other hand, the call is correct if the key value exists, but no attribute is attached on \fIcomm\fP for that key; in that case, the call returns \fIflag\fP = false. In particular, MPI_KEYVAL_INVALID is an erroneous key value.
53.sp
54This function replaces MPI_Attr_get, the use of which is deprecated. The C binding is identical. The Fortran binding differs in that \fIattribute_val\fP is an address-sized integer.
55
56.SH FORTRAN 77 NOTES
57.ft R
58The MPI standard prescribes portable Fortran syntax for
59the \fIATTRIBUTE_VAL\fP argument only for Fortran 90. Sun FORTRAN 77
60users may use the non-portable syntax
61.sp
62.nf
63     INTEGER*MPI_ADDRESS_KIND \fIATTRIBUTE_VAL\fP
64.fi
65.sp
66where MPI_ADDRESS_KIND is a constant defined in mpif.h
67and gives the length of the declared integer in bytes.
68
69.SH ERRORS
70Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.
71.sp
72Before the error value is returned, the current MPI error handler is
73called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. 
74
Note: See TracBrowser for help on using the repository browser.