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 6914525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:21:30+00:00 2026-05-27T09:21:30+00:00

I was curious as to how the GPU executes the same kernel multiple times.

  • 0

I was curious as to how the GPU executes the same kernel multiple times.

I have a kernel which is being queued hundreds (possibly thousands) of times in a row, and using the AMD App Profiler I noticed that it would execute clusters of kernels extremely fast, then like clockwork every so often a kernel would “hang” (i.e. take orders of magnitude longer to execute). I think it’s every 64th kernel that hangs.

This is odd because each time through the kernel performs the exact same operations with the same local and global sizes. I’m even re-using the same buffers.

Is there something about the execution model that I’m missing (perhaps other programs/the OS accessing the GPU or the timing frequency of the GPU memory). I’m testing this on an ATI HD5650 card under Windows 7 (64-bit), with AMD App SDK 2.5 with in-order queue execution.

As a side note, if the I don’t have any global memory accesses in my kernel (a rather impractical prospect), the profiler puts a gap in between the quick executing kernels and where the slow executing kernels were before is now a large empty gap where none of my kernels are being executed.

As a follow-up question, is there anything that can be done to fix this?

  • 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-05-27T09:21:31+00:00Added an answer on May 27, 2026 at 9:21 am

    It’s probable you’re seeing the effects of your GPU’s maximum number of concurrent tasks. Each task enqueued is assigned to one or more multiprocessors, which are frequently capable of running hundreds of workitems at a time – of the same kernel, enqueued in the same call. Perhaps what you’re seeing is the OpenCL runtime waiting for one of the multiprocessors to free up. This relates most directly to the occupancy issue – if the work size can’t keep the multiprocessor busy, through memory latencies and all, it has idle cycles. The limit here depends on how many registers (local or private memory) your kernel requires. In summary, you want to write your kernel to operate on multiple pieces of data more so than queueing it many times.

    Did your measurement include reading back results from the apparently fast executions?

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

Sidebar

Related Questions

curious if anyone might have some insight in how I would do the following
Curious to get people's thoughts. I conduct frequent interviews, and have had enough in
Curious whether folks have setup 2 way transactional replication on the tables ASP.NET uses
I am curious if cudaMemcpy is executed on the CPU or the GPU when
Curious what recommendations anyone has. I have an existing asp.net forms application that does
Curious if anyone ever noticed this, but I have a WYSIWYG that users occassionally
Curious as to how to approach this same problem using ruby / rails -
I curious to how different people solve integration of systems. I have a feeling
Curious if anyone has opinions on which method would be better suited for asp.net
Curious to know why my 2.0 .net application is being allowed to execute when

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.