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.

opebCL 1.1 printf

bil050
Beginner
456 Views
Hi I construct kernel from the string

const char *source[] = {

"#pragma OPENCL EXTENSION cl_intel_printf : enable\\n",

"__kernel void ", testname,

"()\\n",

"{\\n",

" printf(\\"",

""%d,"\\\\n\\",",

"2",");",

"}\\n"

};
But I get error: can't enable all OpenCL extensions or unrecognized OpenCL extension
I took the last ocl 1.1 version from the intel site.
How can I solve this issue?
Thanks

0 Kudos
2 Replies
Jiri_Matejka
Beginner
456 Views
Hi,
I use
#pragma OPENCL EXTENSION all : enable
and the printing to console window works fine for me (Core i5) with last version of the SDK.
0 Kudos
Boaz_O_Intel
Employee
456 Views

Hi Jiri,

Thank you for the post - we will have a look at this item
Could you provide the OS your were using?

Thanks,
Boaz

0 Kudos
Reply