문제

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,

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top