Compiler Crash? clBuildProgram never returns

This almost sounds too simple to be true, but clBuildProgram never returns with the following kernel

__kernel void clKernel(__read_only image2d_t image)

{

}

As soon as I reference the image like so,

__kernel void clKernel(__read_only image2d_t image)

{	

     const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE;

read_imagef(image, sampler, (int2)(0));

}

everthing works fine. I think this has only been a problem for the last few driver versions. Currently I am running driver 266.66 on a GTX 560 Ti.

Same problem here, the compiler seems to have a bug if a given image is not referenced. ( Which won’t happen imo once the kernel is completed anyway :) )

I found this out the hard way as well - took me a while to realise I had commented out all the image references in the OpenCL kernel while I was debugging. All of a sudden the progam just started to crash