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.
1720 Discussions

Does the cpu OpenCL runtime not support printf ? It seem to not work in my kernel.

Aidener
Beginner
651 Views

Dear eveyone

     My kernel which use the 'printf' function seem to not work. I got nothing when I try to develop a program. But it work well when I use Nuclear display OpenCL runtime.

     I try to use a simple kernel to print, but nothing expected happens.

Example like that does not work.

kernel void maintest(){
    printf("%s\n", "this is a test string\n");
}

 

My cpu is i5-6300hq which working in windows10 pro.  The runtime comes from Intel® Process Runtime for OpenCL™  and shuld be the latest version.  I will appreciate that some infomation help me to solve it.

Labels (1)
0 Kudos
1 Reply
cw_intel
Moderator
590 Views

Hi,

Can you provide a reproducer? I tested an example, printf can work on my side. 

 

Thanks.

0 Kudos
Reply