1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
4 * (C) 2014 by Argonne National Laboratory.
5 * See COPYRIGHT in top-level directory.
8 #ifndef MTEST_DATATYPE_H_
9 #define MTEST_DATATYPE_H_
12 #include "mpitestconf.h"
15 /* Provide backward portability to MPI 1 */
33 enum MTEST_DERIVED_DT {
39 MTEST_DDT_INDEXED_BLOCK,
40 MTEST_DDT_HINDEXED_BLOCK,
42 /* MTEST_DDT_SUBARRAY_ORDER_C,*/
43 /* MTEST_DDT_SUBARRAY_ORDER_FORTRAN,*/
47 enum MTEST_MIN_DERIVED_DT {
49 MTEST_MIN_DDT_INDEXED,
53 typedef int (*MTestDdtCreator) (MPI_Aint, MPI_Aint, MPI_Aint, MPI_Aint, MPI_Datatype, const char *, MTestDatatype *);
55 extern void MTestTypeCreatorInit(MTestDdtCreator * creators);
56 extern void MTestTypeMinCreatorInit(MTestDdtCreator * creators);
57 extern void *MTestTypeInitRecv(MTestDatatype * mtype);
59 extern int MTestTypeBasicCreate(MPI_Datatype oldtype, MTestDatatype * mtype);
60 extern int MTestTypeDupCreate(MPI_Datatype oldtype, MTestDatatype * mtype);
62 #endif /* MTEST_DATATYPE_H_ */