how to implement global synchronization ?

Discussion created by Fuxianjun on Aug 18, 2010
Latest reply on Nov 2, 2010 by LeeHowes

I only know barrier(CLK_LOCAL_MEM_FENCE) make sure work-items in the same work-group run synchronously. But how to make all of work-items which are even not in the same work-group run synchronously ? use barrier(CLK_GLOBAL_MEM_FENCE) ?