MPI_Type_indexed.3in: fix array_of_displacements type
This man page contains the prototype and descriptions for both MPI_TYPE_INDEXED and MPI_TYPE_CREATE_HINDEXED. Bastian Beischer noticed that the type of the array_of_displacements argument in the MPI_TYPE_CREATE_HINDEXED was wrong. Also, a minor update to MPI_Type_hindexed.3in: indicate that the C type is MPI_Aint and the Fortran type is INTEGER (which is why this function was deprecated and then deleted by the MPI Forum!). cmr=v1.8.1:reviewer=dgoodell This commit was SVN r31411.
Этот коммит содержится в:
родитель
1a274a45b2
Коммит
ae43ae4d17
@ -1,6 +1,8 @@
|
||||
.\" Copyright 2010 Cisco Systems, Inc. All rights reserved.
|
||||
.\" -*- nroff -*-
|
||||
.\" Copyright 2010-2014 Cisco Systems, Inc. All rights reserved.
|
||||
.\" Copyright 2006-2008 Sun Microsystems, Inc.
|
||||
.\" Copyright (c) 1996 Thinking Machines Corporation
|
||||
.\" $COPYRIGHT$
|
||||
.TH MPI_Type_hindexed 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
|
||||
.SH NAME
|
||||
\fBMPI_Type_hindexed\fP \- Creates an indexed datatype with offsets in bytes -- use of this routine is deprecated.
|
||||
@ -37,7 +39,9 @@ array_of_blocklengths
|
||||
Number of elements in each block (array of nonnegative integers).
|
||||
.TP 1i
|
||||
array_of_displacements
|
||||
Byte displacement of each block (array of integer).
|
||||
Byte displacement of each block (C: array of
|
||||
.IR MPI_Aint ,
|
||||
Fortran: array of integer).
|
||||
.TP 1i
|
||||
oldtype
|
||||
Old datatype (handle).
|
||||
|
@ -1,8 +1,9 @@
|
||||
.\" -*- nroff -*-
|
||||
.\" Copyright 2013 Los Alamos National Security, LLC. All rights reserved.
|
||||
.\" Copyright 2010 Cisco Systems, Inc. All rights reserved.
|
||||
.\" Copyright 2010-2014 Cisco Systems, Inc. All rights reserved.
|
||||
.\" Copyright 2006-2008 Sun Microsystems, Inc.
|
||||
.\" Copyright (c) 1996 Thinking Machines Corporation
|
||||
.\" $COPYRIGHT$
|
||||
.TH MPI_Type_indexed 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
|
||||
.SH NAME
|
||||
\fBMPI_Type_indexed, MPI_Type_create_hindexed\fP \- Creates an indexed datatype.
|
||||
@ -16,8 +17,9 @@ int MPI_Type_indexed(int \fIcount\fP, const int\fI array_of_blocklengths[]\fP,
|
||||
const int\fI array_of_displacements[]\fP, MPI_Datatype\fI oldtype\fP,
|
||||
MPI_Datatype\fI *newtype\fP)
|
||||
|
||||
int MPI_Type_create_hindexed(int \fIcount\fP, const int\fI array_of_blocklengths[]\fP,
|
||||
const int\fI array_of_displacements[]\fP, MPI_Datatype\fI oldtype\fP,
|
||||
int MPI_Type_create_hindexed(int \fIcount\fP,
|
||||
const int\fI array_of_blocklengths[]\fP,
|
||||
const MPI_Aint\fI array_of_displacements[]\fP, MPI_Datatype\fI oldtype\fP,
|
||||
MPI_Datatype\fI *newtype\fP)
|
||||
|
||||
.fi
|
||||
@ -33,7 +35,8 @@ MPI_TYPE_INDEXED(\fICOUNT, ARRAY_OF_BLOCKLENGTHS,
|
||||
MPI_TYPE_CREATE_HINDEXED(\fICOUNT, ARRAY_OF_BLOCKLENGTHS,
|
||||
ARRAY_OF_DISPLACEMENTS, OLDTYPE, NEWTYPE, IERROR\fP)
|
||||
INTEGER \fICOUNT, ARRAY_OF_BLOCKLENGTHS(*)\fP
|
||||
INTEGER \fIARRAY_OF_DISPLACEMENTS(*), OLDTYPE, NEWTYPE\fP
|
||||
INTEGER \fIOLDTYPE, NEWTYPE\fP
|
||||
INTEGER(KIND=MPI_ADDRESS_KIND) \fIARRAY_OF_DISPLACEMENTS(*)\fP
|
||||
INTEGER \fIIERROR\fP
|
||||
|
||||
.fi
|
||||
@ -46,7 +49,7 @@ Datatype Datatype::Create_indexed(int \fIcount\fP,
|
||||
|
||||
Datatype Datatype::Create_hindexed(int \fIcount\fP,
|
||||
const int \fIarray_of_blocklengths\fP[],
|
||||
const int \fIarray_of_displacements\fP[]) const
|
||||
const MPI::Aint \fIarray_of_displacements\fP[]) const
|
||||
|
||||
.fi
|
||||
.SH INPUT PARAMETERS
|
||||
@ -61,7 +64,12 @@ Number of elements per block (array of nonnegative integers).
|
||||
.TP 1i
|
||||
array_of_displacements
|
||||
Displacement for each block, in multiples of oldtype extent for MPI_Type_indexed and bytes for MPI_Type_create_hindexed (array of
|
||||
integer).
|
||||
integer for
|
||||
.BR MPI_TYPE_INDEXED ,
|
||||
array of
|
||||
.I MPI_Aint
|
||||
for
|
||||
.BR MPI_TYPE_CREATE_HINDEXED ).
|
||||
.TP 1i
|
||||
oldtype
|
||||
Old datatype (handle).
|
||||
@ -135,8 +143,6 @@ called. By default, this error handler aborts the MPI job, except for I/O functi
|
||||
.SH SEE ALSO
|
||||
.ft R
|
||||
.sp
|
||||
MPI_Type_create_hindexed
|
||||
.br
|
||||
MPI_Type_hindexed
|
||||
.br
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user