The mailboxes, even for the PPE, are named according to the perspective of the SPE.
邮箱(甚至那些用于PPE的邮箱)都是从 SPE 的角度定义的。
The function returns the SPE task ID number, which you then use as a parameter to spe_wait.
这个函数返回SPE任务的ID号,然后您可以将它作为 spe_wait 的参数使用。
They assign ratings both to entities issuing bonds and to spe-cific corporate bond issues.
它们给发售债券的公司和个别公司债券评级。
Be sure to let us know what you think by sending your comments and suggestions to spe@us.ibm.com.
请将您的评论和建议发送到 spe@us.ibm.com,让我们了解您的想法。
Now you can just wait for the spe task to complete using spe_wait, and then print out the final value.
现在,只需用spe_wait等待spe任务完成,然后打印出最终的值。
This is a special tool that converts spe programs into an object file that can be linked into a PPE executable.
这是一个特殊工具,可以将SPE程序转换成一个能被链接进PPE可执行程序的对象文件。
The special value SPE_DEFAULT_ENTRY causes the default entry point in the spe program's ELF headers to be used.
特殊值SPE_DEFAULT_ENTRY会导致使用SPE程序的elf头中的默认入口点。
The NULL argument to spe_context_run would become a third argument to the main function on the spe; there's no need for it in this example.
spe_context_run的NULL参数会成为spe上main函数的第3个参数;因此在这个例子中不需要使用它。
When the DMA transfer is complete, the spe_arg_t structure passed as an argument by the PPE program has been copied into the SPE program for argument validation.
当DMA传输完成时,由PPE程序作为参数传递的 spe_arg_t结构就会被拷贝到SPE 程序中进行参数验证。
The address (in PPE address space) of the spe_args structure is passed in as an argument which will eventually become the argp argument of the spe program's main.
spe_args结构的地址(在PPE的地址空间中)被作为一个参数传递进来,它最终成为spe程序main函数的argp参数。
The first interesting part of the PPU code is the inclusion of the libspe.h header file, which contains all of the function declarations for running programs on the SPE.
PPU代码中最有意思的一部分是包括了libspe.h头文件,它包含了所有用来在SPE上运行程序的函数声明。
This usually means copying the arguments over from the spe local store, running the respective library function in the user thread, and continuing by calling the ioctl again.
这通常意味着从SPE的本地存储中拷贝参数,在用户线程中运行各自的库函数,并通过再次调用ioctl继续执行。
Furthermore, once the spe code has been generated, it is embedded into an ELF (Executable and Linking Format) object code file and incorporated into the main program through the fib_spe_handle.
另外,生成了spe代码之后,将它嵌入一个ELF (Executable and Linking Format)对象代码文件,并通过fib_spe_handle合并进主程序。
In scalar code on the spe, declaring scalar values as vectors and vector Pointers (even if you aren't using them as vectors) can speed up code because it doesn't have to do unaligned loads and stores.
在SPE上的标量代码中,将标量值声明为向量和向量指针(即使没有将它们作为向量使用)可以加速代码的执行,因为这样就不会执行非对齐的加载和存储操作。
Creating and running SPE tasks.
创建和运行SPE任务。
Channels are used for all SPE input and output.
信道用于所有的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负载转移。
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之间最显著的差别在于访问内存的方法。
That's a pretty big difference because the SPE does not have direct access to main memory.
这的确是一个很大的区别,因为SPE并不直接访问主存。
The first thing our SPE program does is reserve space for the application's parameter data.
SPE程序首先为应用程序参数数据保留空间。
With all that done, though, this is a viable framework for getting data to and from an SPE.
不过,在完成这一切的前提下,这是从SPE中获取数据(或向SPE中写入数据)的一种可行框架。
That variable is the handle to the program code, which will be used to create your SPE tasks.
那个变量就是到程序代码的句柄,用来创建SPE任务。
So, take a look at how a simple program is constructed to perform processing tasks on the SPE.
因此,让我们来了解一下简单程序是如何构造来在SPE上执行处理任务的。
Therefore, to avoid branches I offload as much of the conditional work onto the SPE as possible.
因此,为了避免出现分支,我将尽可能多的有条件工作分载到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 个字节。
应用推荐