Instead of having multiple directly accessible arguments, you get a pointer into main memory and the SPE has to issue DMA requests to get the pointed-to data from main memory.
它没有使用多个可直接访问的参数,而是使用一个指向主存的指针,SPE需要发出dma请求来从主存中获取指针所指向的数据。
Back to the API: the PPE can pass a single pointer into the program, so multiple arguments have to be bundled up. My solution is this.
现在回到API上来:PPE只能向程序传递一个指针,因此多个参数必须要捆绑在一起传递。
A reference is an application specific pointer to an object that usually lives in a larger context, such as a server or cluster, and is used by multiple parties.
引用是应用程序的特定指针,该指针指向通常存在于更大的上下文(如服务器或集群)中并且供多方使用的对象。
It can be treated as a scalar value or a pointer to a structure containing multiple parameters, or it can be ignored.
它可以视为标量值,或指向包含多个参数的结构的指针,也可以忽略。
It can be treated as a scalar value or a pointer to a structure containing multiple parameters, or it can be ignored.
它可以视为标量值,或指向包含多个参数的结构的指针,也可以忽略。
应用推荐