> 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).

I'm not sure why that software is defining MPI_BOOL -- that's bad form.  MPI 
reserves the "namespace" prefix of MPI_ -- middleware and applications should 
not be defining new symbols with an MPI_ prefix (to prevent exactly this kind 
of confusion).

-- 
Jeff Squyres
jsquy...@cisco.com

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Reply via email to