printf works in SDK 2.2, please see the release notes.
I get an exception when using printf on GPU.
Kernel looks like this:
if ((get_global_id(0) == 0) && (get_global_id(1) == 0))
Stream SDK 2.2
Catalyst 10.7 Update Driver
Ubuntu 10.4 64bit
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
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