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,
문제
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?
해결책
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,