cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Atmapuri
Journeyman III

Local memory access between kernels!

Hi!

Is it possible for the contents of local memory to be used by the next kernel in the que? As I understand each compute unit has its own local memory and this is not possible.

Is it possible to query within the kernel the size of the local memory allocated when the clSetKernelArg was called?

Thanks!
Atmapuri

0 Likes
3 Replies

No, local data share is not preserved between dispatches.  Regarding your other question, you can pass in the size of the buffer as a parameter.

Jeff

0 Likes

it is possible look at clGetKernelWorkGroupInfo(...CL_KERNEL_LOCAL_MEM_SIZE...)

0 Likes


Jeff's answer tell how to query size of LDS inside the kernel and nou's solution is to know LDS used from runtime code.

0 Likes