Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8650107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:44:05+00:00 2026-06-12T13:44:05+00:00

I recently compared 2 kinds of doing kernel runtime measuring and I see some

  • 0

I recently compared 2 kinds of doing kernel runtime measuring and I see some confusing results.

I use an AMD Bobcat CPU (E-350) with integrated GPU and Ubuntu Linux (CL_PLATFORM_VERSION is OpenCL 1.2 AMD-APP (923.1)).

The basic gettimeofday idea looks like this:

clFinish(...)  // that all tasks are finished on the command queue
gettimeofday(&starttime,0x0)
clEnqueueNDRangeKernel(...)
clFlush(...)
clWaitForEvents(...)
gettimeofday(&endtime,0x0)

This says the kernel needs around 5466 ms.

Second time measurement I did with clGetEventProfilingInfo for QUEUED / SUBMIT / START / END.

With the 4 time values I can calculate the time spend in the different states:

  • time spend queued: 0.06 ms,
  • time spend submitted: 2733 ms,
  • time spend in execution: 2731 ms (actual execution time).

I see that it adds up to the 5466 ms, but why does it stay in submitted state for half the time?

And the funny things are:

  • the submitted state is always half of the actual execution time, even for different kernels or different workload (so it can’t be a constant setup time),

  • for the CPU the time spend in submitted state is 0 and the execution time is equal to the gettimeofday result,

  • I tested my kernels on an Intel Ivy Bridge with windows using CPU and GPU and I didn’t see the effects there.

Does anyone have a clue?

I suspect that either the GPU runs the kernel twice (resulting in gettimeofday being double of the actual execution time) or that the function clGetEventProfilingInfo is not working correctly for the AMD GPU.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:44:08+00:00Added an answer on June 12, 2026 at 1:44 pm

    I posted the problem in an AMD forum. They say it’s a bug in the AMD profiler.

    http://devgurus.amd.com/thread/159809

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some kind of research related to mod_perl-Apache-Perl compatibility. Recently I tried to
I recently compared some of the physics engine out there for simulation and game
Recently I was asked to develop an app, which basically is going to use
I recently found a interesting behaviour of g++ when compared with MSVC++ 2008. Consider
Recently I read some articles about some doubts about benefits of acceptance testing, because
We have recently compared the respective file sizes of the same tabular data (think
Recently I'm trying to reuse some UI elements in my application. When I started
Will Ruby ever see a performance boost as Javascript has seen recently? Can a
I want to display compare products,recently viewed/compared products blocks only in category and product
I recently found that a query would not work on some of my records

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.