Results 1 to 3 of 3

Thread: Using Itermediate Representation binaries

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    166

    Using Itermediate Representation binaries

    Hi,

    has anyone done this yet? I wasa trying to get an ir binary running that was produced with intels offline compiler. clCreateProgramWithBinary worked fine, clBuildProgram breaks without an errorlog returning CL_BUILD_PROGRAM_FAILURE. I don't have a clue what went wrong. I just know the .cl code i used to run the offline complier works without any prblems.

    Glad for any hints,
    clint3112

  2. #2
    Junior Member AmbitEnerg's Avatar
    Join Date
    Nov 2012
    Location
    Bay City, Michigan
    Posts
    1

    Re: Using Itermediate Representation binaries

    Quote Originally Posted by clint3112
    Hi,

    has anyone done this yet? I wasa trying to get an ir binary running that was produced with intels offline compiler. clCreateProgramWithBinary worked fine, clBuildProgram breaks without an errorlog returning CL_BUILD_PROGRAM_FAILURE. I don't have a clue what went wrong. I just know the .cl code i used to run the offline complier works without any prblems.

    Glad for any hints,
    clint3112

    hi Clint,

    Maybe (int i=0;i<36142;i++) instead (int i=0;i<36142<i++)

    you can be check also with clGetProgramBuildInfo()..


    Team Committed to Excellence.

  3. #3
    Senior Member
    Join Date
    Oct 2012
    Posts
    166

    Re: Using Itermediate Representation binaries

    Hi Ambit,

    I dont understand what you mean with your for loop, but I know that I can get the binary code with clGetBuildInfo. Problem is, that this is a binary, build for a specific device. IR Format should not be for a specific format. Instread of that, it should just translate in a vendorunspecific binary code that will be loaded and compiled faster that the standard char* code loaded from an array. Or do you know how to get the IR from the clGetBuildOption?

    Spec 1.1 says:
    The bits returned
    can be an implementation-specific
    intermediate representation (a.k.a. IR) or
    device specific executable bits or both.
    Greetings,
    Clint3112

Similar Threads

  1. Binaries
    By jaba in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 09-14-2004, 04:05 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
  •