Overview

0.9a

The libspe2 functionality is split into 4 libraries:

Terminology

Usage Scenarios

Single-threaded sample

Note: In the new model, it is not necessary to have a main thread - the SPE thread can be the only application thread. It may run parts of its code on PPE and then start an SPE, e.g., for an accelerated function. The main thread is needed only if you want to use multiple SPEs concurrently. The following minimalistic sample illustrates the basic steps:

Here is the same sample with some error checking:

Multi-threaded sample

This illustrates a threaded sample using the pthread library:

Here is the same sample with some error checking:

Problem state mapping samples

This illustrates accessing the MFC Local Store Address Register.

Event samples

This illustrates a sample using the event libary. The event, which we receive is of course that the spu program has stopped, because otherwise we would not get there.

Events are more useful in multithreaded environments:


Generated on Tue Dec 16 10:15:11 2008 for libspe2 by  doxygen 1.5.7.1