阅读背景:

mpi_allreduce对派生数据类型向量的求和。

来源:互联网 

I'm trying to reduce (sum) a derived data type which is created by MPI_type_vector. When I'm running the code it crashes and complains about the reduction MPI_SUM is not defined for non-instrinsic datatype. I wrote a peice of simple code to show my problem. The code tries to reduce the diagonal elements of a 3*3 matrix:I'm trying to reduce (sum) a derived data type




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: