⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpi_win_create_keyval.3

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Win_create_keyval 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME\fBMPI_Win_create_keyval\fP \- .SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Win_create_keyval(MPI_Win_copy_attr_function *\fIwin_copy_attr_fn\fP, 	MPI_Win_delete_attr_function *\fIwin_delete_attr_fn\fP, 	int *\fIwin_keyval\fP, void *\fIextra_state\fP) .SH Fortran Syntax (see FORTRAN 77 NOTES).nfINCLUDE 'mpif.h'MPI_WIN_CREATE_KEYVAL(\fIWIN_COPY_ATTR_FN, WIN_DELETE_ATTR_FN, 	WIN_KEYVAL, EXTRA_STATE, IERROR\fP) 	EXTERNAL \fIWIN_COPY_ATTR_FN, WIN_DELETE_ATTR_FN\fP 	INTEGER \fIWIN_KEYVAL, IERROR\fP 	INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTRA_STATE\fP .SH C++ Syntax.nf#include <mpi.h>static int MPI::Win::Create_keyval(MPI::Win::Copy_attr_function* 	\fIwin_copy_attr_fn\fP, 	MPI::Win::Delete_attr_function* \fIwin_delete_attr_fn\fP, 	void* \fIextra_state\fP) .SH INPUT PARAMETERS.ft R.TP 1iwin_copy_attr_fnCopy callback function for \fIwin_keyval\fP (function)..TP 1iwin_delete_attr_fnDelete callback function for \fIwin_keyval\fP (function). .TP 1iextra_stateExtra state for callback functions. .SH OUTPUT PARAMETERS.ft R.TP 1iwin_keyvalKey value for future access (integer). .TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RThe 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. .spThe 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. .spThe C callback functions are:.sp.nftypedef int MPI_Win_copy_attr_function(MPI_Win \fIoldwin\fP, int \fIwin_keyval\fP,              void *\fIextra_state\fP, void *\fIattribute_val_in\fP,              void *\fIattribute_val_out\fP, int *\fIflag\fP); .fi.spand.sp.nftypedef int MPI_Win_delete_attr_function(MPI_Win \fIwin\fP, int \fIwin_keyval\fP,              void *\fIattribute_val\fP, void *\fIextra_state\fP); .fi.spThe Fortran callback functions are:.sp.nfSUBROUTINE WIN_COPY_ATTR_FN(\fIOLDWIN, WIN_KEYVAL, EXTRA_STATE, 	ATTRIBUTE_VAL_IN, ATTRIBUTE_VAL_OUT, FLAG, IERROR\fP) 	INTEGER \fIOLDWIN, WIN_KEYVAL, IERROR\fP 	INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTRA_STATE, ATTRIBUTE_VAL_IN, 		ATTRIBUTE_VAL_OUT\fP 	LOGICAL \fIFLAG\fP .fi.spand.sp.nfSUBROUTINE WIN_DELETE_ATTR_FN(\fIWIN, WIN_KEYVAL, ATTRIBUTE_VAL, 	EXTRA_STATE, IERROR\fP) 	INTEGER \fIWIN, WIN_KEYVAL, IERROR\fP 	INTEGER(KIND=MPI_ADDRESS_KIND) \fIATTRIBUTE_VAL, EXTRA_STATE\fP .fi.spThe C++ callbacks are:.sp.nftypedef int MPI::Win::Copy_attr_function(const MPI::Win& \fIoldwin\fP, 	int \fIwin_keyval\fP, void* \fIextra_state\fP, void* \fIattribute_val_in\fP, 	void* \fIattribute_val_out\fP, bool& \fIflag\fP); .fi.spand.sp.nftypedef int MPI::Win::Delete_attr_function(MPI::Win& \fIwin\fP, int \fIwin_keyval\fP, void* \fIattribute_val\fP, void* \fIextra_state\fP); .fi.SH FORTRAN 77 NOTES.ft RThe MPI standard prescribes portable Fortran syntax forthe \fIEXTRA_STATE\fP argument only for Fortran 90. FORTRAN 77users may use the non-portable syntax.sp.nf     INTEGER*MPI_ADDRESS_KIND \fIEXTRA_STATE\fP.fi.spwhere MPI_ADDRESS_KIND is a constant defined in mpif.hand gives the length of the declared integer in bytes..SH ERRORSAlmost 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..spBefore the error value is returned, the current MPI error handler iscalled. 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.  ' @(#)MPI_Win_create_keyval.3 1.12 06/03/09

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -