Barriers in OpenCL

As you have stated, barriers may only synchronize threads in the same workgroup. There is no way to synchronize different workgroups in a kernel. Now to answer your question, the specification was not clear to me either, but it seems to me that section 6.11.9 contains the answer: CLK_LOCAL_MEM_FENCE – The barrier function will either … Read more