Skip to content

Commit 22ea42d

Browse files
committed
datatype: remove adding MPI_TYPECLASS_LOGICAL
The MPI_TYPECLASS_LOGICAL (to support MPI_Type_match_size) is not approved by the Forum yet. Revert the change until it is official.
1 parent df1223f commit 22ea42d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/include/mpi.h.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ extern int * const MPI_WEIGHTS_EMPTY MPICH_API_PUBLIC;
574574
#define MPI_TYPECLASS_REAL 1
575575
#define MPI_TYPECLASS_INTEGER 2
576576
#define MPI_TYPECLASS_COMPLEX 3
577-
#define MPI_TYPECLASS_LOGICAL 4
578577

579578
#define MPI_LOCK_EXCLUSIVE 234
580579
#define MPI_LOCK_SHARED 235

src/mpi/datatype/datatype_impl.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ int MPIR_Type_match_size_impl(int typeclass, int size, MPI_Datatype * datatype)
317317
static MPI_Datatype complex_types[] = {
318318
MPI_COMPLEX4, MPI_COMPLEX8, MPI_COMPLEX16, MPI_COMPLEX32,
319319
};
320-
static MPI_Datatype logical_types[] = {
321-
MPI_LOGICAL1, MPI_LOGICAL2, MPI_LOGICAL4, MPI_LOGICAL8, MPI_LOGICAL16,
322-
};
323320

324321
/* The following implementation follows the suggestion in the
325322
* MPI-2 standard.
@@ -356,13 +353,6 @@ int MPIR_Type_match_size_impl(int typeclass, int size, MPI_Datatype * datatype)
356353
matched_datatype = type_match_size(complex_types, n, size);
357354
#ifdef HAVE_ERROR_CHECKING
358355
tname = "MPI_TYPECLASS_COMPLEX";
359-
#endif
360-
break;
361-
case MPI_TYPECLASS_LOGICAL:
362-
n = sizeof(logical_types) / sizeof(MPI_Datatype);
363-
matched_datatype = type_match_size(logical_types, n, size);
364-
#ifdef HAVE_ERROR_CHECKING
365-
tname = "MPI_TYPECLASS_LOGICAL";
366356
#endif
367357
break;
368358
default:

0 commit comments

Comments
 (0)