Results 1 to 2 of 2

Thread: Timing OpenCL kernel code

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    1

    Timing OpenCL kernel code

    Is there any way to time a part of the kernel code? Whatever I have found online, either uses CPU timer or GPU timer (clgeteventinfo). But they are to be used inside the host code if I understand correctly. So if a part of the kernel code is to be measured, is there any way to do it?

    Thanks for your help!

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: Timing OpenCL kernel code

    Quote Originally Posted by smjee
    Is there any way to time a part of the kernel code? Whatever I have found online, either uses CPU timer or GPU timer (clgeteventinfo). But they are to be used inside the host code if I understand correctly. So if a part of the kernel code is to be measured, is there any way to do it?

    Thanks for your help!
    The only tools or api's i've seen time a whole kernel. I split the kernel manually to time separate parts.

    One reason these cpu's can run so fast without burning a hole in the floor is they have limited support for stuff like this, so I can't imagine it will ever be possible on current gen gpus.

Similar Threads

  1. OpenCL slow compiling of multiple kernel code
    By chammakchallo in forum OpenCL
    Replies: 3
    Last Post: 02-13-2012, 08:45 AM
  2. c++ code into a OpenCL kernel????
    By vilches in forum OpenCL
    Replies: 1
    Last Post: 09-28-2011, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •