spectral

Best way to allocate exact local memory

Discussion created by spectral on Jun 9, 2011
Latest reply on Jun 9, 2011 by MicahVillmow

Hi,

I need in a kernel to allocate a local memory zone :

__local int chunck[get_local_size(0)];

Unfortunately, it is forbidden.

So, what is the best way to do this ?

Remarks: I think that it is simple to allocate a buffer on the host side and declare it local in the kernel. Right ?

Thanks

Outcomes