Hi,
printf in the GPU kernel still not supported ? I just wanted to confirm on this after the new release. Also can you please specify the work around ?
Regards
AJ
I get an exception when using printf on GPU.
Kernel looks like this:
if ((get_global_id(0) == 0) && (get_global_id(1) == 0))
{
printf("\n\nhello world\n\n");
}
HD5850
Stream SDK 2.2
Catalyst 10.7 Update Driver
Ubuntu 10.4 64bit
hi all,
printf is supported in Ver 2.2 as an OpenCL Extension.
You need to type in the follwing pragma directive
in your kernel file to enable printf.
#pragma OPENCL EXTENSION cl_amd_printf:enable
himanshu
I know that! Because if you don't enable the extension you can't compile a kernel with printf!
It's a bug and not my fault
Please send your ststem configuration
driver version and SDK version