cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

uforob
Journeyman III

Local memory visibility and duration

When I execute work-items with clEnqueueNDRangeKernel and then I wait with clFinish, the next time I call clEnqueueNDRangeKernel can I expect the local memory is that of previous computations?

0 Likes
3 Replies
dmeiser
Elite

The content of the shared memory is undefined when you launch a kernel. All kinds of things could have happened between the first kernel finishing and the new kernel starting.

0 Likes

dmeaiser is right. Content needs to brought to LDS before using it. As such you have LDS per compute unit and i dont think we can figure out which workgroup runs on what compute unit or in what order.

0 Likes

Thank you, meanwhile I understood that I didn't need that and that if local memory behaved like I described it wouldn't be "local" anymore but global.

0 Likes