serialization - MPI_Datatype for C++ container -
how can define mpi_datatype
s , mpi_op
s mpi communication routines can used c++ containers?
in specific case, i'd union (distributed) array of std::set<int>
s using mpi_allreduce
.
according related questions
- mpi_allgather , mpi_pack in c
- mpi_reduce() custom datatype containing dynamically allocated arays : segmentation fault
- creating mpi_datatype structure containing pointers
it seems requires (un-)serializing container data. in case, size()
of each std::set
varies widely, , interested in solution not require padding (if possible).
Comments
Post a Comment