Conditional compilation
Within your C++ source files, you can mark code that runs only on the host or the SPUs by using
the FOR_SPU conditional compilation. For
example:
#ifdef FOR_SPU
My SPU code
#else
My host code
#endif