Skip to content

Commit 7981e60

Browse files
authored
[SYCL][ROCm] Fix building libclc for AMD (#4199)
This file uses `cl_mem_fence_flags`, `CLK_GLOBAL_MEM_FENCE`, `CLK_LOCAL_MEM_FENCE`, which are defined by `clc.h`. It wasn't included because when this file was written the OpenCL headers were implicitely included, this has changed so now including the header is necessary. See the discussion on #4133 for more details.
1 parent 2af0599 commit 7981e60

File tree

1 file changed

+1
-0
lines changed
  • libclc/amdgcn-amdhsa/libspirv/synchronization

1 file changed

+1
-0
lines changed

libclc/amdgcn-amdhsa/libspirv/synchronization/barrier.cl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include <clc/clc.h>
910
#include <spirv/spirv.h>
1011

1112
void __clc_amdgcn_s_waitcnt(unsigned flags);

0 commit comments

Comments
 (0)