Question

There are several basic MPI datatypes however, what if it is needed to send/receive an instance of a class. If this is possible, could you give an example?

Was it helpful?

Solution

To send a struct, you may use MPI_Type_create_struct http://www.mpich.org/static/docs/v3.1/www3/MPI_Type_create_struct.html

Here is an example of how to do so :

http://mpi.deino.net/mpi_functions/MPI_Type_create_struct.html

Bye,

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top