Implement wait_group_events builtin v2

This is a simple default implemetation which just calls barrier().

v2:
  - Only call barrier() once.

llvm-svn: 219006
This commit is contained in:
Tom Stellard 2014-10-03 19:49:34 +00:00
parent 1356ac75d1
commit b5064f79ef
4 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
void wait_group_events(int num_events, event_t *event_list);

View File

@ -138,6 +138,7 @@
/* 6.11.10 Async Copy and Prefetch Functions */
#include <clc/async/prefetch.h>
#include <clc/async/wait_group_events.h>
/* 6.11.11 Atomic Functions */
#include <clc/atomic/atomic_add.h>

View File

@ -1,4 +1,5 @@
async/prefetch.cl
async/wait_group_events.cl
atomic/atomic_xchg.cl
atomic/atomic_impl.ll
cl_khr_global_int32_base_atomics/atom_add.cl

View File

@ -0,0 +1,5 @@
#include <clc/clc.h>
_CLC_DEF void wait_group_events(int num_events, event_t *event_list) {
barrier(CLK_LOCAL_MEM_FENCE | CLK_GLOBAL_MEM_FENCE);
}