但是,有几种基本的MPI数据类型,如果需要发送/接收类的实例,该怎么办?如果可以的话,你能举个例子吗?
答案 0 :(得分:1)
要发送struct
,您可以使用MPI_Type_create_struct
http://www.mpich.org/static/docs/v3.1/www3/MPI_Type_create_struct.html
以下是如何执行此操作的示例:
http://mpi.deino.net/mpi_functions/MPI_Type_create_struct.html
再见,