【发布时间】:2015-09-28 22:14:02
【问题描述】:
谁能用通俗易懂的英文解释index在函数MPI_Graph_create(MPI_Comm comm_old, int nnodes, const int index[],
const int edges[], int reorder, MPI_Comm *comm_graph)中的作用
我一直在分析 MPI 手册页中指定的 MPI_Graph_create 函数。我想念index[] 的计算方式。该标准规定index 变量是指节点的度数,这意味着从特定节点入射的边数。对于下面的邻接矩阵,标准有 index = 2, 3, 4, 6 。我期待2 , 1 ,1 ,2 基于邻接矩阵中指定的边。
Process Neighbors
0 1,3
1 0
2 3
3 0,2
MPI 标准的正确答案是:-
nnodes = 4
index = 2, 3, 4, 6
edges = 1 ,3, 0, 3, 0 ,2
【问题讨论】:
标签: c++ parallel-processing mpi distributed-computing