Am 29.03.2018 um 09:58 schrieb Florian Lindner: > #define MPI_BOOL MPI_Select_unsigned_integer_datatype<sizeof(bool)>::datatype > > > It redefines MPI_BOOL based on the size of bool. I wonder if this is needed > and why? > > I was speculating that the compiler could pack multiple bools in one word, > when used as a array. But the code above is a > compile time specialization and won't help there.
Ok, I just discovered that MPI has no MPI_BOOL type. According to the standard, there is a MPI_CXX_BOOL and MPI_C_BOOL (pp. 26). Since I use C++ I tend to use MPI_CXX_BOOL, which also seems to be present when no CXX bindings are compiled. Best, Florian _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users