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

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

Adding compiled files

File size: 4.4 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Win_create_keyval 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Win_create_keyval\fP \- Creates a keyval for a window.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Win_create_keyval(MPI_Win_copy_attr_function *\fIwin_copy_attr_fn\fP,
13        MPI_Win_delete_attr_function *\fIwin_delete_attr_fn\fP,
14        int *\fIwin_keyval\fP, void *\fIextra_state\fP)
15
16.SH Fortran Syntax (see FORTRAN 77 NOTES)
17.nf
18INCLUDE 'mpif.h'
19MPI_WIN_CREATE_KEYVAL(\fIWIN_COPY_ATTR_FN, WIN_DELETE_ATTR_FN,
20        WIN_KEYVAL, EXTRA_STATE, IERROR\fP)
21        EXTERNAL \fIWIN_COPY_ATTR_FN, WIN_DELETE_ATTR_FN\fP
22        INTEGER \fIWIN_KEYVAL, IERROR\fP
23        INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTRA_STATE\fP
24
25.SH C++ Syntax
26.nf
27#include <mpi.h>
28static int MPI::Win::Create_keyval(MPI::Win::Copy_attr_function*
29        \fIwin_copy_attr_fn\fP,
30        MPI::Win::Delete_attr_function* \fIwin_delete_attr_fn\fP,
31        void* \fIextra_state\fP)
32
33.SH INPUT PARAMETERS
34.ft R
35.TP 1i
36win_copy_attr_fn
37Copy callback function for \fIwin_keyval\fP (function).
38.TP 1i
39win_delete_attr_fn
40Delete callback function for \fIwin_keyval\fP (function).
41.TP 1i
42extra_state
43Extra state for callback functions.
44
45.SH OUTPUT PARAMETERS
46.ft R
47.TP 1i
48win_keyval
49Key value for future access (integer).
50.TP 1i
51IERROR
52Fortran only: Error status (integer).
53
54.SH DESCRIPTION
55.ft R
56The argument \fIwin_copy_attr_fn\fP may be specified as MPI_WIN_NULL_COPY_FN or MPI_WIN_DUP_FN from either C, C++, or Fortran. MPI_WIN_NULL_COPY_FN is a function that serves only to return \fIflag\fP = 0 and MPI_SUCCESS. MPI_WIN_DUP_FN is a simple-minded copy function that sets \fIflag\fP = 1, returns the value of \fIattribute_val_in\fP in \fIattribute_val_out\fP, and returns MPI_SUCCESS.
57.sp
58The argument \fIwin_delete_attr_fn\fP may be specified as MPI_WIN_NULL_DELETE_FN from either C, C++, or Fortran. MPI_WIN_NULL_DELETE_FN is a function that serves only to return MPI_SUCCESS.
59.sp
60The C callback functions are:
61.sp
62.nf
63typedef int MPI_Win_copy_attr_function(MPI_Win \fIoldwin\fP, int \fIwin_keyval\fP,
64             void *\fIextra_state\fP, void *\fIattribute_val_in\fP,
65             void *\fIattribute_val_out\fP, int *\fIflag\fP);
66.fi
67.sp
68and
69.sp
70.nf
71typedef int MPI_Win_delete_attr_function(MPI_Win \fIwin\fP, int \fIwin_keyval\fP,
72             void *\fIattribute_val\fP, void *\fIextra_state\fP);
73.fi
74.sp
75The Fortran callback functions are:
76.sp
77.nf
78SUBROUTINE WIN_COPY_ATTR_FN(\fIOLDWIN, WIN_KEYVAL, EXTRA_STATE,
79        ATTRIBUTE_VAL_IN, ATTRIBUTE_VAL_OUT, FLAG, IERROR\fP)
80        INTEGER \fIOLDWIN, WIN_KEYVAL, IERROR\fP
81        INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTRA_STATE, ATTRIBUTE_VAL_IN,
82                ATTRIBUTE_VAL_OUT\fP
83        LOGICAL \fIFLAG\fP
84.fi
85.sp
86and
87.sp
88.nf
89SUBROUTINE WIN_DELETE_ATTR_FN(\fIWIN, WIN_KEYVAL, ATTRIBUTE_VAL,
90        EXTRA_STATE, IERROR\fP)
91        INTEGER \fIWIN, WIN_KEYVAL, IERROR\fP
92        INTEGER(KIND=MPI_ADDRESS_KIND) \fIATTRIBUTE_VAL, EXTRA_STATE\fP
93.fi
94.sp
95The C++ callbacks are:
96.sp
97.nf
98typedef int MPI::Win::Copy_attr_function(const MPI::Win& \fIoldwin\fP,
99        int \fIwin_keyval\fP, void* \fIextra_state\fP, void* \fIattribute_val_in\fP,
100        void* \fIattribute_val_out\fP, bool& \fIflag\fP);
101.fi
102.sp
103and
104.sp
105.nf
106typedef int MPI::Win::Delete_attr_function(MPI::Win& \fIwin\fP, int \fIwin_keyval\fP, void* \fIattribute_val\fP, void* \fIextra_state\fP);
107.fi
108
109.SH FORTRAN 77 NOTES
110.ft R
111The MPI standard prescribes portable Fortran syntax for
112the \fIEXTRA_STATE\fP argument only for Fortran 90. FORTRAN 77
113users may use the non-portable syntax
114.sp
115.nf
116     INTEGER*MPI_ADDRESS_KIND \fIEXTRA_STATE\fP
117.fi
118.sp
119where MPI_ADDRESS_KIND is a constant defined in mpif.h
120and gives the length of the declared integer in bytes.
121
122.SH ERRORS
123Almost 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.
124.sp
125Before the error value is returned, the current MPI error handler is
126called. 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. 
127
Note: See TracBrowser for help on using the repository browser.