Results 1 to 4 of 4  Thread: OpenCL Synchronization between
workgroups.    1. #1     Junior Member     Join Date     Oct
2012      OpenCL Synchronization between workgroups.      I am
actually looping an openCL call to a kernel several times.
The kernel command is called within a loop in the host program
and in each iteration we wait for the commands to complete(using
clFinish), assign the buffer values to an another
buffer(consider it as previous values buffer) and then continue
to the next iteration, where the kernel is again called as shown
below.      loop n times      { kernel(uses the previous buffer
values for updating the current buffer values, which includes
the 4 neighbours if we consider a 2d grid)      2.wait for the
kernel command to finish.      3.copy the current buffer values
to the previous buffer.      4.wait for all commands to finish.
The values from the previous values buffer could be used to
update the current buffer values , however the current buffer
values are updated based