有几种基本的 MPI 数据类型,但是,如果需要发送/接收类的实例怎么办?如果可以的话,您能举个例子吗?
最佳答案
要发送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
再见,
关于c - 在 MPI 中发送/接收类的实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23193450/