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?
Solved! Go to Solution.
Currently printf isn't supported for OpenCL kernels compiled for HSA. The requires special trap handling that currently isn't implemented in the KFD.
Currently printf isn't supported for OpenCL kernels compiled for HSA. The requires special trap handling that currently isn't implemented in the KFD.
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?
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.
related post: