cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ravi_gupta
Journeyman III

Is there any way to add logs in OpenCL kernel?

Hi experts,

   I am learning OpenCL, wanted to add some debug log or some print messages in the kernel so that I will get to know what is happening. I was looking into examples but did not get something worth.

   Any pointer/suggestion will be realy helpfull.

0 Likes
1 Reply
nou
Exemplar

do you mean something like printf()? look into cl_amd_printf extension. or maybe you want compile log then look at clGetProgramBuildInfo() function

0 Likes