Login or Register

FAQs Right Offloading Guidelines

Moving data definitions into Offload™ blocks

Using Offload™ Block-local Data Leads To Fast SPU Code

This article was updated on 2011-06-03 03:33:54


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 (Article 80) 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 (Article 136) and the data locality library (Article 71).