afo

Constant buffer for a kernel

Discussion created by afo on Apr 26, 2011
Latest reply on Apr 26, 2011 by MicahVillmow
How to implement a constant (cached) memory buffer?

Hi,

I have a kernel that uses a constant value buffer as an input (each workitem reads the values from the constant buffer and writes a result based in its own work item value to an output buffer).

I would like that those constants were cached, so the entire workgroup uses those cached values and not a global memory read in each workitem. This is done automatically in the GPU or I should do something to get that? Thanks in advance for your help.

best regards,

Alfonso

Outcomes