mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
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:
parent
1356ac75d1
commit
b5064f79ef
1
libclc/generic/include/clc/async/wait_group_events.h
Normal file
1
libclc/generic/include/clc/async/wait_group_events.h
Normal file
@ -0,0 +1 @@
|
||||
void wait_group_events(int num_events, event_t *event_list);
|
@ -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>
|
||||
|
@ -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
|
||||
|
5
libclc/generic/lib/async/wait_group_events.cl
Normal file
5
libclc/generic/lib/async/wait_group_events.cl
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user