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

Program cannot build when setting device to "1"

ABoxe
Beginner
420 Views

Hello,

I have a laptop with both intel haswell chip and intel HD 4400 GPU

I have VS 2012 and the 2014 beta opencl sdk installed.

I have taken the median filter sample and modified it to run my own kernel.

Using the default device "0" (CPU), everything works fine. 

But, if I set device to "1", then I get an error when trying to build the opencl kernel.

i.e. when calling clBuildProgram

Thanks,

Aaron

 

 

 

 

 

 

 

 

.

0 Kudos
2 Replies
Raghupathi_M_Intel
420 Views

Hi Aaron,

Is this the same issue as you reported at http://software.intel.com/en-us/forums/topic/508650? What error are you getting when calling clBuildProgram()?

Raghu

0 Kudos
ABoxe
Beginner
420 Views

Hi Raghu,

Yes, this is the same issue I reported in http://software.intel.com/en-us/forums/topic/508650.

The error is an access violation. So, something in this kernel makes the compiler sad.

The program works fine for two AMD GPUS that I tested on, and also Intel CPU.

You can simply run my github project to reproduce.

Thanks,

Aaron

0 Kudos
Reply