[mpich-devel] Default print name for MPI-3 C++ datatypes

Lisandro Dalcin dalcinl at gmail.com
Wed Apr 9 02:46:20 CDT 2014


Please review the following trivial patch (also attached),

diff --git a/src/mpi/datatype/type_get_name.c b/src/mpi/datatype/type_get_name.c
index 07c2f84..e550dfb 100644
--- a/src/mpi/datatype/type_get_name.c
+++ b/src/mpi/datatype/type_get_name.c
@@ -108,6 +108,12 @@ static mpi_names_t mpi_names[] = {
     type_name_entry(MPI_C_DOUBLE_COMPLEX),
     type_name_entry(MPI_C_LONG_DOUBLE_COMPLEX),

+    /* C++ types */
+    type_name_entry(MPI_CXX_BOOL),
+    type_name_entry(MPI_CXX_FLOAT_COMPLEX),
+    type_name_entry(MPI_CXX_DOUBLE_COMPLEX),
+    type_name_entry(MPI_CXX_LONG_DOUBLE_COMPLEX),
+
     /* address/offset types */
     type_name_entry(MPI_AINT),
     type_name_entry(MPI_OFFSET),

-- 
Lisandro Dalcin
---------------
CIMEC (UNL/CONICET)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1016)
Tel/Fax: +54-342-4511169
-------------- next part --------------
diff --git a/src/mpi/datatype/type_get_name.c b/src/mpi/datatype/type_get_name.c
index 07c2f84..e550dfb 100644
--- a/src/mpi/datatype/type_get_name.c
+++ b/src/mpi/datatype/type_get_name.c
@@ -108,6 +108,12 @@ static mpi_names_t mpi_names[] = {
     type_name_entry(MPI_C_DOUBLE_COMPLEX),
     type_name_entry(MPI_C_LONG_DOUBLE_COMPLEX),
 
+    /* C++ types */
+    type_name_entry(MPI_CXX_BOOL),
+    type_name_entry(MPI_CXX_FLOAT_COMPLEX),
+    type_name_entry(MPI_CXX_DOUBLE_COMPLEX),
+    type_name_entry(MPI_CXX_LONG_DOUBLE_COMPLEX),
+
     /* address/offset types */
     type_name_entry(MPI_AINT),
     type_name_entry(MPI_OFFSET),


More information about the devel mailing list