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

  • Home
  • SEARCH
  • 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 8568411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:06:27+00:00 2026-06-11T18:06:27+00:00

I am trying to run a kernel on the GPU and do additional computation

  • 0

I am trying to run a kernel on the GPU and do additional computation on the host (CPU). I see this effect:

only the kernel needs around 2000 ms:

clEnqueueNDRangeKernel …

clFinish (or clWaitForEvents, I tried both)

I simulated additional computation on the CPU with sleep(10):

clEnqueueNDRangeKernel …

sleep(10);

clFinish (or clWaitForEvents)

In theory the kernel should run on GPU and after the 10 sec sleep the kernel should be finished. But time measuring said it all needs 12000ms instead of 10000.

Does clFinish or clWaitForEvents invoke the kernel to start or did I miss something?

I’m using an AMD Fusion CPU/GPU und Linux.

Thanks a lot.

  • 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-11T18:06:28+00:00Added an answer on June 11, 2026 at 6:06 pm

    Try calling clFlush right after clEnqueueNDRangeKernel:

    clFlush

    Issues all previously queued OpenCL commands in a
    command-queue to the device associated with the command-queue.

    http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clFlush.html

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

Sidebar

Related Questions

Im trying to run exe file with c++ with no luck I tried this:
I am trying to run an app which is using a kernel mode driver.
So this all began in trying to get Coldfusion9 portlets to run under Liferay,
I'm trying to run this on OSX 10.7: /** * simple.d */ import std.stdio;
I have a sample code run in kernel(2.6.30 x86_64) mode(r0),trying to simulate a iret.I
I'm trying to get a kernel module to load at boot. If I run
I am trying to run: php app/console doctrine:fixtures:load but I am constantly getting this
I am trying run a program from a qmake .pro file which modifies the
Situation: I'm trying run an https store (xcart) under one domain secure.example.com and I
Trying to run the following command in php to run powershell command... the following

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.