cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

prodigyaj
Journeyman III

debugger in openCL

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

0 Likes
5 Replies

printf works in SDK 2.2, please see the release notes.
0 Likes

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

0 Likes

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

0 Likes

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

0 Likes

Please send your ststem configuration

driver version and SDK version

0 Likes