How to crash the compiler....

How to crash the compiler....

constant sampler_t sampler = CLK_NORMALIZED_COORDS_TRUE | CLK_ADDRESS_MIRRORED_REPEAT  | CLK_FILTER_NEAREST;

int4 temp = (int4)(0,0,0,0);

 ( read_imagei(idata, sampler, (float2)(0, temp)) + temp) >> 1;  

 

The error is passing in an int4 object instead of a float.

 

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Note: I am running the sdk from visual studio 2012

Sorry to take so long to reply.  Is there any way you could send a short application demonstrating the crash you're seeing?

Thanks!   Jeff

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today