3 Replies Latest reply on Oct 28, 2009 2:13 AM by genaganna

    measuring kernel performance

    paulius

      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?

        • measuring kernel performance
          genaganna

           

          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.

           

            • measuring kernel performance
              paulius

              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?

                • measuring kernel performance
                  genaganna

                   

                  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.