atomic_add work for global variable correctly, but i try on local and got failed

i also used these pragma :
#pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable
#pragma OPENCL EXTENSION cl_khr_local_int32_base_atomics : enable