PDA

View Full Version : Using Itermediate Representation binaries



clint3112
11-22-2012, 08:02 AM
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

AmbitEnerg
11-22-2012, 12:25 PM
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()..


:wink:

clint3112
11-23-2012, 12:30 AM
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