"aftrer using barrier function the value in memory, which is qualified as __local, is changed."
I could narrow down the range.
The problem comes from using barrier when I read and write some data in memory(array), which is qualified as __local.
I didn't see there is some limitation the memory area must be used as only reading or writing.
But it seems to be operated that there is the cache and when local memory is read, that is saved in cache and flush when I use barrier, which argument is "CLK_LOCAL_MEM_FENCE"