Results 1 to 2 of 2

Thread: profiling

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    1

    profiling

    I use the command clGetEventProfilingInfo with CL_PROFILING_COMMAND_END and CL_PROFILING_COMMAND_START to get the time by the kernel on the gpu device or the memory transfer ?
    But how can I measure the consumed time by the command clEnqueueNDRangeKernel on the CPU and GPU ?

    Should I add the user time CPU (e.g. returned by getrusage) and the time returned by clGetEventProfilingInfo for the event associated with clEnqueueNDRangeKernel?

    Mickael,

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Location
    Santa Clara
    Posts
    105

    Re: profiling

    You can use clGetEventProfilingInfo with CL_PROFILING_COMMAND_QUEUED and CL_PROFILING_COMMAND_SUBMIT to find out delta between when command was enqueued by the application and when the command was submitted to the device. Similarly, the delta between CL_PROFILING_COMMAND_SUBMIT and CL_PROFILING_COMMAND_START will tell you the time delta between when the command was submitted to the device and when it actually started executing on the device.

Similar Threads

  1. Profiling of kernel code
    By biren in forum OpenCL
    Replies: 3
    Last Post: 04-22-2013, 03:10 AM
  2. Profiling Code
    By PaulS in forum OpenCL
    Replies: 15
    Last Post: 10-15-2009, 03:14 AM

Posting Permissions

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