[Libclc-dev] [PATCH 1/3] Implement wait_group_events builtin

Matt Arsenault Matthew.Arsenault at amd.com
Fri Aug 8 15:47:06 PDT 2014


On 08/08/2014 02:40 PM, Tom Stellard wrote:
> +_CLC_DEF void wait_group_events(int num_events, event_t *event_list) {
> +  barrier(CLK_LOCAL_MEM_FENCE);
> +  barrier(CLK_GLOBAL_MEM_FENCE);
> +}
Why not barrier(CLK_LOCAL_MEM_FENCE | CLK_GLOBAL_MEM_FENCE)?

The spec says "This function does not perform any implicit 
synchronization of source data such as using a barrier before performing 
the copy" although this doesn't sound like a really enforceable restriction




More information about the Libclc-dev mailing list