Pack/Unpack
An alternative approach to grouping data is to pack noncontiguous data into contiguous memory locations (i.e a buffer), send, and then unpack upon arrival
Int MPI_Pack( void* pack_data,
int in_count,
MPI_Datatype datatype,
void* buffer,
int buffer_size,
int* position,
MPI_Comm comm)
Int MPI_Unpack( void* buffer,
int size,
int* position,
void* unpack_data,
int count,
MPI_Datatype datatype,
MPI_Comm comm)
Previous slide
Next slide
Back to first slide
View graphic version