File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
libclc/amdgcn-amdhsa/libspirv Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,8 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUTargetInfo final : public TargetInfo {
328
328
case OCLTK_Queue:
329
329
case OCLTK_ReserveID:
330
330
return LangAS::opencl_global;
331
+ case OCLTK_Event:
332
+ return LangAS::opencl_private;
331
333
332
334
default :
333
335
return TargetInfo::getOpenCLTypeAddrSpace (TK);
Original file line number Diff line number Diff line change @@ -56,3 +56,4 @@ workitem/get_sub_group_id.cl
56
56
workitem/get_sub_group_local_id.cl
57
57
workitem/get_sub_group_size.cl
58
58
misc/sub_group_shuffle.cl
59
+ async/wait_group_events.cl
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+
9
+ #include <spirv/spirv.h>
10
+
11
+ _CLC_DEF void _Z23__spirv_GroupWaitEventsjiP9ocl_event (unsigned int scope ,
12
+ int num_events ,
13
+ event_t __attribute__((address_space (0 )))* event_list ) {
14
+ __spirv_ControlBarrier (scope , Workgroup , SequentiallyConsistent );
15
+ }
16
+
17
+ _CLC_OVERLOAD _CLC_DEF void __spirv_GroupWaitEvents (unsigned int scope ,
18
+ int num_events ,
19
+ event_t * event_list ) {
20
+ __spirv_ControlBarrier (scope , Workgroup , SequentiallyConsistent );
21
+ }
22
+
You can’t perform that action at this time.
0 commit comments