Moving Data Definitions Into Offload™ Blocks

Within an Offload™ block, code that does not depend on PPU data (defined outside an offload block) will generate fast SPU code. The compiler provides a number of compiler options (/kb/80.html) to spot PPU data dependencies in order to help the programmer to remove or refactor them for performance.

Moving data local onto the SPU (i.e. defining variables inside an offload block) is the essential idea behind the cache classes (/kb/136.html) and the data locality library (/kb/71.html).