Skip to content

Commit 496894b

Browse files
committed
[SYCL][ROCm] Fix building libclc for AMD
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 intel#4133 for more details.
1 parent c6bc5a6 commit 496894b

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

+1
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)