Forum Discussion
JLiu21
New Contributor
8 years agoOpenCL compiler warning about barrier although no barrier in the code
Hi, I am having this warning "compiler warning: limiting to 2 concurrent work_groups because threads might reach barrier out-of-order" when compiling my kernel. Here is part of my code: __attribute...
HRZ
Frequent Contributor
8 years agoYour code is incomplete so I cannot test it myself. However, it is possible that the compiler assumes an implicit barrier at the end of the kernel.
The compiler automatically enforces sequential thread ordering when channels are used in NDRange kernels. I don't think this behavior can be influenced by the user. I don't think there is much point in trying to prevent this either.