cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

greenflops
Adept I

printf

I need to debug some opencl kernels. I tried to add some printf() call to my kernel.cl files but after a snack and g++ the printf() doesn't print anything is it a normal behaviour or did I missed something?

0 Likes
1 Solution
jedwards
Staff

Currently printf isn't supported for OpenCL kernels compiled for HSA. The requires special trap handling that currently isn't implemented in the KFD.

View solution in original post

0 Likes
4 Replies
jedwards
Staff

Currently printf isn't supported for OpenCL kernels compiled for HSA. The requires special trap handling that currently isn't implemented in the KFD.

0 Likes

OK, for debug reason (may be not printf() function exactly but some other) can I display internal kernel values (ex global_id and local_id)? or in a future HSA 1.x release?

0 Likes

In future versions of AMD's HSA implementation printf functionality will be supported. In addition, AMD is actively developing HSA kernel debuggers. Release dates for both have not yet been announced.

0 Likes

0 Likes