~ubuntu-branches/ubuntu/hardy/openmpi/hardy-updates

« back to all changes in this revision

Viewing changes to ompi/mpi/man/man3/MPI_Attr_put.3

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel, Manuel Prinz, Dirk Eddelbuettel
  • Date: 2007-10-06 07:54:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071006075447-wr1q1d2u6kpc1bi3
Tags: 1.2.4-3
[ Manuel Prinz ]
* debian/control: Added openmpi-common to libopenmpi-dev's Depends
  (Closes: #445230)

[ Dirk Eddelbuettel ]
* Debian build and upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"Copyright 2006, Sun Microsystems, Inc.
 
2
.\" Copyright (c) 1996 Thinking Machines Corporation
 
3
.TH MPI_Attr_put 3OpenMPI "September 2006" "Open MPI 1.2" " "
 
4
.SH NAME
 
5
\fBMPI_Attr_put\fP \- Stores attribute value associated with a key -- use of this routine is deprecated.
 
6
 
 
7
.SH SYNTAX
 
8
.ft R
 
9
.SH C Syntax
 
10
.nf
 
11
#include <mpi.h>
 
12
int MPI_Attr_put(MPI_Comm \fIcomm\fP, int\fI keyval\fP, void\fI *attribute_val\fP)
 
13
 
 
14
.SH Fortran Syntax
 
15
.nf
 
16
INCLUDE 'mpif.h'
 
17
MPI_ATTR_PUT(\fICOMM\fP,\fI KEYVAL\fP, \fIATTRIBUTE_VAL\fP,\fI IERROR\fP)
 
18
        INTEGER \fICOMM\fP,\fI KEYVAL\fP,\fI ATTRIBUTE_VAL\fP,\fI IERROR
 
19
 
 
20
 
 
21
.SH INPUT PARAMETERS
 
22
.ft R
 
23
.TP 1i
 
24
comm
 
25
Communicator to which attribute will be attached (handle).
 
26
.TP 1i
 
27
keyval
 
28
Key value, as returned by MPI_KEYVAL_CREATE (integer).
 
29
.TP 1i
 
30
attribute_val
 
31
Attribute value.
 
32
 
 
33
.SH OUTPUT PARAMETER
 
34
.ft R
 
35
.TP 1i
 
36
IERROR
 
37
Fortran only: Error status (integer). 
 
38
 
 
39
.SH DESCRIPTION
 
40
.ft R
 
41
Note that use of this routine is \fIdeprecated\fP as of MPI-2. Please use MPI_Comm_set_attr instead. 
 
42
.sp
 
43
This deprecated routine is not available in C++. 
 
44
.sp
 
45
MPI_Attr_put stores the stipulated attribute value attribute_val for subsequent retrieval by MPI_Attr_get. If the value is already present, then the outcome is as if MPI_Attr_delete was first called to delete the previous value (and the callback function delete_fn was executed), and a new value was next stored. The call is erroneous if there is no key with value keyval; in particular MPI_KEYVAL_INVALID is an erroneous key value. The call will fail if the delete_fn function returned an error code other than MPI_SUCCESS.
 
46
 
 
47
.SH NOTES
 
48
.ft R
 
49
Values of the permanent attributes MPI_TAG_UB, MPI_HOST,
 
50
MPI_IO, and MPI_WTIME_IS_GLOBAL may not be changed.
 
51
.sp
 
52
The type of the attribute value depends on whether C or Fortran is being used. In C, an attribute value is a pointer (void *); in Fortran, it is a single integer (not a pointer, since Fortran has no pointers and there are systems for which a pointer does not fit in an integer, e.g., any  32-bit address system that uses 64 bits for Fortran DOUBLE PRECISION).
 
53
.sp
 
54
If an attribute is already present, the delete function (specified when the corresponding keyval was created) will be called.
 
55
 
 
56
.SH ERRORS
 
57
Almost 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.
 
58
.sp
 
59
Before the error value is returned, the current MPI error handler is
 
60
called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler
 
61
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.  
 
62
 
 
63
.SH SEE ALSO
 
64
.ft R
 
65
.sp
 
66
MPI_Comm_set_attr
 
67
.br
 
68
' @(#)MPI_Attr_put.3 1.21 06/03/09