Creating and running SPE tasks.
创建和运行SPE任务。
16 works just fine, for DMA to the SPE.
对于到SPE的dma来说,16次幂就可以很好地工作。
Channels are used for all SPE input and output.
信道用于所有的SPE输入和输出。
This is the SPE thread group to assign this task to.
是任务被分配到的spe线程组。
Both the SPE and the PPE can initiate DMA transfers.
SPE和PPE都可以发起dma传输。
This application is really simple, creating 16 SPE threads.
这个应用程序非常简单,它只创建16个spe线程。
Now the Cell BE processor does not run SPE programs directly.
现在,CellBE处理器并不直接运行SPE程序。
Contains a revised version of the code that includes SPE offload.
zip包含代码的修订版,其中包括SPE负载转移。
The mailboxes, even for the PPE, are named according to the perspective of the SPE.
邮箱(甚至那些用于PPE的邮箱)都是从 SPE 的角度定义的。
This is a pointer to a structure which holds the data about the SPE program itself.
是持有有关SPE程序本身的数据的结构的指针。
Unlike the SPE, the PPE does not stall and wait for a value when it reads or writes.
与SPE不同,PPE在读写时并不会停下来等待值的出现。
Next, you define the structure that will be used as the parameter to your SPE program.
接下来,定义结构,该结构将被用作到SPE程序的参数。
This command causes the SPE to immediately return with the status of the DMA channels.
这个命令会导致SPE立即返回dma通道的状态。
The most significant difference between the SPE and PPE lies in how they access memory.
SPE与PPE之间最显著的差别在于访问内存的方法。
Upon completion of a set of six threads, the next set of SPE offload threads are begun.
完成一组六个线程之后,开始下一组SPE负载转移线程。
So, take a look at how a simple program is constructed to perform processing tasks on the SPE.
因此,让我们来了解一下简单程序是如何构造来在SPE上执行处理任务的。
That's a pretty big difference because the SPE does not have direct access to main memory.
这的确是一个很大的区别,因为SPE并不直接访问主存。
They assign ratings both to entities issuing bonds and to spe-cific corporate bond issues.
它们给发售债券的公司和个别公司债券评级。
Next, the spe task is created with spe_create_thread, passing in your parameter structure.
接下来,spe任务用spe_create_thread创建,传递进参数结构。
With all that done, though, this is a viable framework for getting data to and from an SPE.
不过,在完成这一切的前提下,这是从SPE中获取数据(或向SPE中写入数据)的一种可行框架。
The first thing our SPE program does is reserve space for the application's parameter data.
SPE程序首先为应用程序参数数据保留空间。
The function returns the SPE task ID number, which you then use as a parameter to spe_wait.
这个函数返回SPE任务的ID号,然后您可以将它作为 spe_wait 的参数使用。
Therefore, to avoid branches I offload as much of the conditional work onto the SPE as possible.
因此,为了避免出现分支,我将尽可能多的有条件工作分载到SPE中。
That variable is the handle to the program code, which will be used to create your SPE tasks.
那个变量就是到程序代码的句柄,用来创建SPE任务。
It's instructive to understand what happens on the spe when the ppe is using the libspe2 API.
理解PPE在使用libspe2API时spe上究竟发生了什么是非常有益的。
The composite intrinsics encapsulate common usage patterns on the SPE to simplify its programming.
复合intrinsic封装了SPE 的常用模式,从而对它的编程进行简化。
Notice that in both the PPE and the SPE the struct was aligned to 16 bytes and padded to 16 bytes.
注意在PPE和SPE 中,这个结构被对齐为16字节,并填充成 16 个字节。
The SPE program reads in the input buffer, processes the data, and then writes it to the output buffer.
SPE程序从输入缓冲区中读取数据,然后对数据进行处理,再将结果写入输出缓冲区中。
The SPE API defines a number of opaque data types which are used as arguments to various API functions.
SPEAPI定义了很多不透明的数据类型,它们被用作各个api函数的参数。
The two transmission steps do not involve the SPU at all, but only the MFC (which is part of the larger SPE).
两个传输步骤根本没有涉及SPU,只涉及MFC(这是比较大的SPE的一部分)。
应用推荐