barrier(CLK_LOCAL_MEM_FENCE) ??

I’m working on an OpenCL program and using the barrier(CLK_LOCAL_MEM_FENCE) function.
By using this function the program never gave correct calculation.
I’m still using the OpenCL 1.0.
Is there any possibility that this function isn’t working properly ??

Sure there’s a possibility of a bug in the OpenCL implementation you are using. We cannot be of more help unless you show us the kernel source code that is malfunctioning (the simpler you can make the code, the easier it will be to help you). It would also be useful to know what values you expected and what values were actually returned.