Please run the clInfo sample on your system and check wheather cl_khr_byte_addressable_store is supported or not.
If it is present add the following #pragma in the kernel code:
#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
We do not support the Apple platform. Please contact Apple related to their platform specific crashes/issues.