[libclc] a2fd44a - libclc: Fix wait_group_events build for targets without generic (#185264)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 8 01:03:54 PST 2026
Author: Matt Arsenault
Date: 2026-03-08T10:03:51+01:00
New Revision: a2fd44acf3115bc5cb024814296b19df6ab34287
URL: https://github.com/llvm/llvm-project/commit/a2fd44acf3115bc5cb024814296b19df6ab34287
DIFF: https://github.com/llvm/llvm-project/commit/a2fd44acf3115bc5cb024814296b19df6ab34287.diff
LOG: libclc: Fix wait_group_events build for targets without generic (#185264)
Added:
Modified:
libclc/opencl/lib/amdgcn/async/wait_group_events.cl
Removed:
################################################################################
diff --git a/libclc/opencl/lib/amdgcn/async/wait_group_events.cl b/libclc/opencl/lib/amdgcn/async/wait_group_events.cl
index fac33f73af1c4..f1c9925847de5 100644
--- a/libclc/opencl/lib/amdgcn/async/wait_group_events.cl
+++ b/libclc/opencl/lib/amdgcn/async/wait_group_events.cl
@@ -15,9 +15,13 @@ _CLC_DEF _CLC_OVERLOAD void wait_group_events(int n, __private event_t *evs) {
memory_scope_work_group);
}
-_CLC_DEF _CLC_OVERLOAD void wait_group_events(int n, __generic event_t *evs) {
+#if _CLC_GENERIC_AS_SUPPORTED
+
+_CLC_DEF _CLC_OVERLOAD void wait_group_events(int n, event_t *evs) {
(void)n;
(void)evs;
work_group_barrier(CLK_LOCAL_MEM_FENCE | CLK_GLOBAL_MEM_FENCE,
memory_scope_work_group);
}
+
+#endif
More information about the cfe-commits
mailing list