Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/binding/c/mpix_api.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
MPIX_Type_dump_typemap:
datatype: DATATYPE
.desc: Dump the type map of the given datatype
.impl: direct
{
return MPIR_type_dump_typemap(datatype);
}

MPIX_Type_dump_typesig:
datatype: DATATYPE
.desc: Dump the type signature of the given datatype
.impl: direct
{
return MPIR_type_dump_typesig(datatype);
}
19 changes: 19 additions & 0 deletions src/include/mpir_datatype.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,4 +615,23 @@ MPI_Aint MPII_Datatype_blockindexed_count_contig(MPI_Aint count,
const MPI_Aint disp_array[],
int dispinbytes, MPI_Aint old_extent);

struct typemap {
MPI_Aint n;
MPI_Datatype *types;
MPI_Aint *disps;
};

struct typesig {
MPI_Aint n;
MPI_Datatype *types;
MPI_Aint *counts;
};

int MPIR_type_dump_typemap(MPI_Datatype dt);
int MPIR_type_dump_typesig(MPI_Datatype dt);
struct typemap *MPIR_type_get_typemap(MPI_Datatype dt);
struct typesig *MPIR_type_get_typesig(MPI_Datatype dt);
void MPIR_type_free_typemap(struct typemap *map);
void MPIR_type_free_typesig(struct typesig *sig);

#endif /* MPIR_DATATYPE_H_INCLUDED */
1 change: 1 addition & 0 deletions src/mpi/datatype/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ mpi_core_sources += \
src/mpi/datatype/type_create_darray.c \
src/mpi/datatype/type_create_subarray.c \
src/mpi/datatype/type_create_pairtype.c \
src/mpi/datatype/typemap.c \
src/mpi/datatype/type_debug.c
Loading