1. A processor for graphics rendering, comprising: a plurality of processing units, each processing unit capable of executing at least one program element independently of the other processing units of the plurality; a plurality of local memories used by the plurality of processing units; an allocator shared among the plurality of processing units, the allocator operable to allocate space in the local memories for instances of program elements and create a mapping between the instances of the program elements and the allocated space in the local memories; a collector configured to collect instances of program elements into packets; and a distributor configured to distribute instances of program elements, obtained from the packets, to be executed on the plurality of processing units according to the mapping.