6 Replies Latest reply on Jun 9, 2011 9:54 PM by MicahVillmow

    Best way to allocate exact local memory

    spectral

      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