English 中文(简体)
MPJ Express Scatterv和Cacunv, 迁移的目的为何?
原标题:MPJ Express Scatterv and Gatherv, what is the purpose of int[] displacement?
  • 时间:2012-05-23 07:19:58
  •  标签:
  • c++
  • mpi
  • java

问题1。

Scatterv 的“ 流离失所” 参数的目的何在? 它与 Charmev 有何不同? 它如何支持反对地址空间上的“ 重叠 ”? 您的平均 joe 迁移阵列是什么样子?

Scatterv( Object sendbuf, int sendoffset, int[] sendcounts,
int[] displs, Datatype sendtype, Object recvbuf,
int recvoffset, int recvcount, Datatype recvtype,
int root )

Gatherv( Object sendbuf, Object sendbuf, int sendoffset,
int sendcount, Datatype sendtype, Object recvbuf,
int[] recvcounts, int[] displs, Datatype recvtype,
int root )

问题2。

在 Accessv 中,两个 sendbuf 参数中的哪个参数正在接收或发送?

最佳回答

Q1. 在散射矢量和集合矢量操作中,间距和计数的目的都是一样的。在“散射矢量”和“集合矢量”中,两者都指定了每个数据区块起始和有多少元素所在的大型缓冲(sendbuf 在散射中,在集合中,)的位置,每个数据区块的位置(sendbuf 在散射中,在散射中,(在散射中,中,这些位置的位置,这些位置用来定义每个数据区块的位置,每个区块将分散到所有进程,[code>在集合/数中,每个区块不应重叠,但是由于执行原因(如果不是所有 在 " code > 中,现有 " 运行 " smodelS=de " dede " demodel " 运行 " 运行 " 运行 " 中 " 和 " 运行中 ", " 运行 ", " 。

Q2. sendbuf , sendoffsection sendcound 指定要收集的数据的本地部分。 recvbuf , recvcounts[] d>displs[] 指定要收集这些本地碎片的大缓冲中的部分。

全部都写在MPI标准中,IMHO是少数可被凡人阅读的标准之一。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...