Creating and running SPE tasks.
创建和运行SPE任务。
The SPE program is fairly short.
SPE程序非常简短。
16 works just fine, for DMA to the SPE.
对于到SPE的dma来说,16次幂就可以很好地工作。
Helpful tips for C language SPE programming.
对c语言spe编程的一些有用提示。
Represents the local store memory of the SPE.
表示SPE的本地存储内存。
Channels are used for all SPE input and output.
信道用于所有的SPE输入和输出。
After that, control is returned to the SPE.
这之后,控制权再交回给SPE。
This is the SPE thread group to assign this task to.
是任务被分配到的spe线程组。
Here is the code for the spe (enter as spe_distance.c).
下面是spe的代码(请将其输入到spe_distance . c中)。
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程序。
This is a set of bit flags which modify how the SPE is set up.
是一组位标志,用来修改SPE将如何被设置。
Each SPE has 256kb of local storage for both instructions and data.
每个SPE对于指令和数据都有256kb的本地存储。
Contains a revised version of the code that includes SPE offload.
zip包含代码的修订版,其中包括SPE负载转移。
SPE programs often do at least some of their own data transfer, however.
不过,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程序首先为应用程序参数数据保留空间。
Therefore, to avoid branches I offload as much of the conditional work onto the SPE as possible.
因此,为了避免出现分支,我将尽可能多的有条件工作分载到SPE中。
应用推荐