cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

paulius
Journeyman III

measuring kernel performance

Is there an SDK sample that shows how to properly measure kernel elapsed time?  I didn't see timing code in the few samples I looked at.  If not, what would be the recommended way to do that?

0 Likes
3 Replies
genaganna
Journeyman III

Originally posted by: paulius Is there an SDK sample that shows how to properly measure kernel elapsed time?


Have a look at PrefixSum sample at samples/cl/apps/PrefixSum

I didn't see timing code in the few samples I looked at.  If not, what would be the recommended way to do that?

All most all samples print performance numbers.

 

0 Likes

Thanks, somehow I missed that one (I think reduction doesn't use event timing).

A follow up question.  In the prefix sums sample, it appears that event is released (line 473) prior to it being used to extract timing information.  Is there a reason for that, or is it a bug?

0 Likes

Originally posted by: paulius

A follow up question.  In the prefix sums sample, it appears that event is released (line 473) prior to it being used to extract timing information.  Is there a reason for that, or is it a bug?

 

 

Event should be released after extracting timing information.  Thank you for reporting this issue.

0 Likes