OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

How to crash the compiler....

ABoxe
Beginner
444 Views

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.

 

0 Kudos
2 Replies
ABoxe
Beginner
444 Views

Note: I am running the sdk from visual studio 2012

0 Kudos
Jeffrey_M_Intel1
Employee
444 Views

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

 

0 Kudos
Reply