Skip to content

Latest commit

 

History

History
110 lines (87 loc) · 2.39 KB

mpi-type-contiguous-function.md

File metadata and controls

110 lines (87 loc) · 2.39 KB
title TOCTitle ms:assetid ms:mtpsurl ms:contentKeyID ms.date mtps_version f1_keywords dev_langs api_location api_name api_type product topic_type product_family_name ROBOTS description
MPI_Type_contiguous function
MPI_Type_contiguous function
f2fb753c-3f17-4308-a384-8edd8c18bacf
59361020
03/28/2018
v=VS.85
MPI_TYPE_CONTIGUOUS
mpif/MPI_Type_contiguous
mpi/MPI_TYPE_CONTIGUOUS
C++
C
Msmpi.dll
MPI_Type_contiguous
DLLExport
Windows
apiref
kbSyntax
VS
INDEX,FOLLOW
Learn how to define a new data type using MPI_Type_contiguous function on Microsoft's official site. Step-by-step guide included.

MPI_Type_contiguous function

Defines a new data type that is a concatenation of a number of elements of an existing data type.

Syntax

int MPIAPI MPI_Type_contiguous(
        int          count,
        MPI_Datatype oldtype,
  _Out_ MPI_Datatype *newtype
);

Parameters

  • count
    The number of elements in the new data type.

  • oldtype
    The MPI data type of each element.

  • newtype [out]
    On return, contains an MPI_Datatype handle that represents the new data type.

Return value

Returns MPI_SUCCESS on success. Otherwise, the return value is an error code.

In Fortran, the return value is stored in the IERROR parameter.

Fortran

    MPI_TYPE_CONTIGUOUS(COUNT, OLDTYPE, NEWTYPE, IERROR)
        INTEGER COUNT, OLDTYPE, NEWTYPE, IERROR

Remarks

The concatenation of the new data type is defined by using the extent of the old data type as the size of the concatenated copies.

Requirements

Product

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities

Header

Mpi.h; Mpif.h

Library

Msmpi.lib

DLL

Msmpi.dll

See also

MPI Datatype Functions

MPI_Type_vector

MPI_Type_create_hvector