The first file is attached to this message. It crashes both in my code and in the Stream Kernel Analyzer. I can't find any fault in it (besides it being ugly due to opencl not supporting types that well).
I hope this helps you (AMD devs) to find what's wrong.
Platform is Windows 7 x64, HD 5770 with latest drivers (via Steam), Stream/OpenCL SDK 2.2
If you need additional info, let me know. I'd like to hear from other people too, could you please confirm if this code causes the stream kernel analyzer to panic?
Second file in the message below
EDIT: Superflous code removed. See reduction two posts below.