You seem to be using local size of 512 which is not supported on AMD cards. (use 256 or just leave it blank).
Also some suggestion, check OpenCL spec 1.2 and see how error codes are returned from various APIs. Check error codes for each OpenCL API. You can interpret the error using cl.h file.