[97] | 1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
| 2 | .\"Copyright (c) 1996 Thinking Machines |
---|
| 3 | .TH MPI_Type_create_hvector 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
| 4 | .SH NAME |
---|
| 5 | \fBMPI_Type_create_hvector\fP \- Creates a vector (strided) data type with offset in bytes. |
---|
| 6 | |
---|
| 7 | .SH SYNTAX |
---|
| 8 | .ft R |
---|
| 9 | .SH C Syntax |
---|
| 10 | .nf |
---|
| 11 | #include <mpi.h> |
---|
| 12 | int MPI_Type_create_hvector(int \fIcount\fP, int \fIblocklength\fP, |
---|
| 13 | MPI_Aint \fIstride\fP, MPI_Datatype \fIoldtype\fP, MPI_Datatype *\fInewtype\fP) |
---|
| 14 | |
---|
| 15 | .SH Fortran Syntax (see FORTRAN 77 NOTES) |
---|
| 16 | .nf |
---|
| 17 | INCLUDE 'mpif.h' |
---|
| 18 | MPI_TYPE_CREATE_HVECTOR(\fICOUNT, BLOCKLENGTH, STRIDE, OLDTYPE, |
---|
| 19 | NEWTYPE, IERROR\fP) |
---|
| 20 | |
---|
| 21 | INTEGER \fICOUNT, BLOCKLENGTH, OLDTYPE, NEWTYPE, IERROR\fP |
---|
| 22 | INTEGER(KIND=MPI_ADDRESS_KIND) \fISTRIDE\fP |
---|
| 23 | |
---|
| 24 | .SH C++ Syntax |
---|
| 25 | .nf |
---|
| 26 | #include <mpi.h> |
---|
| 27 | MPI::Datatype MPI::Datatype::Create_hvector(int \fIcount\fP, |
---|
| 28 | int \fIblocklength\fP, MPI::Aint \fIstride\fP) const |
---|
| 29 | |
---|
| 30 | .SH INPUT PARAMETERS |
---|
| 31 | .ft R |
---|
| 32 | .TP 1i |
---|
| 33 | count |
---|
| 34 | Number of blocks (nonnegative integer). |
---|
| 35 | .TP 1i |
---|
| 36 | blocklength |
---|
| 37 | Number of elements in each block (nonnegative integer). |
---|
| 38 | .TP 1i |
---|
| 39 | stride |
---|
| 40 | Number of bytes between start of each block (integer). |
---|
| 41 | .TP 1i |
---|
| 42 | oldtype |
---|
| 43 | Old data type (handle). |
---|
| 44 | |
---|
| 45 | .SH OUTPUT PARAMETERS |
---|
| 46 | .ft R |
---|
| 47 | .TP 1i |
---|
| 48 | newtype |
---|
| 49 | New data type (handle). |
---|
| 50 | .TP 1i |
---|
| 51 | IERROR |
---|
| 52 | Fortran only: Error status (integer). |
---|
| 53 | |
---|
| 54 | .SH DESCRIPTION |
---|
| 55 | MPI_Type_create_hvector creates a vector (strided) data type with offset in bytes. |
---|
| 56 | .PP |
---|
| 57 | NOTE \- This routine replaces MPI_Type_hvector, which is deprecated. See the man page MPI_Type_hvector(3) for information about that routine. |
---|
| 58 | |
---|
| 59 | .SH FORTRAN 77 NOTES |
---|
| 60 | .ft R |
---|
| 61 | The MPI standard prescribes portable Fortran syntax for |
---|
| 62 | the \fISTRIDE\fP argument only for Fortran 90. FORTRAN 77 |
---|
| 63 | users may use the non-portable syntax |
---|
| 64 | .sp |
---|
| 65 | .nf |
---|
| 66 | INTEGER*MPI_ADDRESS_KIND \fISTRIDE\fP |
---|
| 67 | .fi |
---|
| 68 | .sp |
---|
| 69 | where MPI_ADDRESS_KIND is a constant defined in mpif.h |
---|
| 70 | and gives the length of the declared integer in bytes. |
---|
| 71 | |
---|
| 72 | .SH ERRORS |
---|
| 73 | 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. |
---|
| 74 | .sp |
---|
| 75 | Before the error value is returned, the current MPI error handler is |
---|
| 76 | called. 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. |
---|
| 77 | |
---|
| 78 | .SH SEE ALSO |
---|
| 79 | .ft R |
---|
| 80 | MPI_Type_hvector |
---|
| 81 | .br |
---|
| 82 | MPI_Type_vector |
---|
| 83 | .br |
---|