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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:55:01+00:00 2026-06-07T17:55:01+00:00

How to compile OpenCL kernel into bitstream which I can later load directly without

  • 0

How to compile OpenCL kernel into bitstream which I can later load directly without recompile?
My platform is AMD machine with both APU and AMD’s discrete GPU. The machine is running the latest AMD APP SDK which supports OpenCL 1.2.

  • 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-07T17:55:03+00:00Added an answer on June 7, 2026 at 5:55 pm

    1) compile the kernel to a program from source with the clCreateProgamWithSource API call. Compiler errors are retrieved with clGetProgramBuildInfo API call.

    2) use the clGetProgramInfo API call to get the CL_PROGRAM_BINARY_SIZES. These are the sizes of the program binaries.
    2a) Allocate memory for the binaries using the sizes from 2)

    3) use the clGetProgramInfo API call to get the CL_PROGRAM_BINARIES. This gets the program binary.

    4) A binary can be turned into an OpenCL program object with the API call
    clCreateProgamWithBinary.

    Binaries a device specific so a binary compiled on a specific device will not run on a different device.

    For a single process instance, once you have the environment ( platform, device, context and queue ) you can just re-use the OpenCL Kernel object and re-execute that with another clEnqueueNDRange API call.

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

Sidebar

Related Questions

I'm getting a compile errors, that I can't really fix. I need to create
I want to compile my .java's (several) into one .jar that are compatible with
I'm running the OpenCL kernel below with a two-dimensional global work size of 1000000
I'm trying to compile something to try out openCl, but i'm having a few
I am serializing the cl_long2 type from OpenCL which is defined like this (simplified
is there a possibility to use self-defined C++ - classes in an OpenCL kernel?
I'm working with some OpenCL code in Xcode 4. I don't want to compile
I'm using g++ under Fedora to compile an openGL project, which has the line:
I'm trying to compile a project which is using OpenAL on Mac OS X
I went to compile a project of mine, which uses SDL, SDL_ttf, OpenAL, and

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.