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

clCreateKernel fails with CPU selected

SDyul
Beginner
514 Views

Hi, i have simple kernel.

When i use intel offline compiler ioc32.exe  clCreateKernel fails with error code INVALID_VALUE

When I recompile the kernel for Intel 4600 GPU clCreateKernel succeeds.

How i can obtain more debug information why it fails on the cpu?

 

 

0 Kudos
3 Replies
SDyul
Beginner
514 Views

I have traces and ir files if needed.

0 Kudos
Robert_I_Intel
Employee
514 Views

Hi Stefan,

1. Could you please provide the kernel? (you can send a private message to me if you do not want to post it in the open)

2. Could you please specify command line parameters to ioc32 that you use to build your .ir file?

Maybe this article could shed some light on this issue: https://software.intel.com/en-us/articles/using-spir-for-fun-and-profit-with-intel-opencl-code-builder - note the differences of compiling a kernel for the 32-bit CPU vs GPU (that one is always 64 bit).

 

0 Kudos
SDyul
Beginner
514 Views

Hi, i have moved to spir and my problems went away.

Thanks

0 Kudos
Reply