Domanda

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?

È stato utile?

Soluzione

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,

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top