I know that the storage of a std::vector<bool>
is not necessarily an array of bools .
If I want to send receive int data stored in a std::vector<int>
, I would use MPI_Send(vect.data(),num_of_ints,MPI_INT,dest_rk,tag,comm)
.
How should I use MPI_Send
to send a std::vector<bool>
? In particular :
- Can / should I use
vect.data()
as the pointer to buffer ? - What MPI type should I give ? Somehow, I feel like
MPI_CXX_BOOL
does not apply (see this question) - What number of elements should I give ? (related to the previous point)