Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Support MPI3 datatype MPI_Count
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 14 Apr 2019 14:07:55 +0000 (16:07 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 14 Apr 2019 16:15:50 +0000 (18:15 +0200)
include/smpi/smpi.h
src/smpi/mpi/smpi_datatype.cpp

index 7017692..605a37a 100644 (file)
@@ -212,6 +212,7 @@ enum ERROR_ENUM {
 
 typedef ptrdiff_t MPI_Aint;
 typedef long long MPI_Offset;
+typedef long long MPI_Count;
 
 struct s_MPI_File;
 typedef struct s_MPI_File *MPI_File;
@@ -292,9 +293,7 @@ XBT_PUBLIC_DATA const MPI_Datatype MPI_INTEGER4;
 XBT_PUBLIC_DATA const MPI_Datatype MPI_INTEGER8;
 XBT_PUBLIC_DATA const MPI_Datatype MPI_INTEGER16;
 
-//for now we only send int values at max
-#define MPI_Count int
-#define MPI_COUNT MPI_INT
+XBT_PUBLIC_DATA const MPI_Datatype MPI_COUNT;
 
 //defines for fortran compatibility
 #if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
index e0686a1..1aa5908 100644 (file)
@@ -95,6 +95,8 @@ CREATE_MPI_DATATYPE_NULL(MPI_LB, 52);
 CREATE_MPI_DATATYPE(MPI_PACKED, 53, char);
 // Internal use only
 CREATE_MPI_DATATYPE(MPI_PTR, 54, void*);
+CREATE_MPI_DATATYPE(MPI_COUNT, 55, long long);
+
 
 namespace simgrid{
 namespace smpi{