Maybe this is a known issue but I'll post it just in case...
I have a kernel that compiles and runs fine on the CPU but when I call clBuildProgram with the GPU as a target I get an exception thrown. I am running on Windows7 64 bit and have already this on an Nvidia Quadro 4800 with success.
I spent some time trying to figure out what was making the compiler barf and have narrowed it down to one line in my kernel. I have attached the file and have marked out where I see the problem.
Solved! Go to Solution.