Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Create kernels from pre-compiled .ir

$
0
0

Hello,

I have a question regarding the creation of kernels from pre-compiled .ir files.

I create a .ir using ioc32 –cmd=compile –input=kernel.cll –device=GPU –ir=kernel.or

In my code I:

a) Load the .ir from file

b) Create a clProgram clCreateProgramWithBinary with my binary (clBuildProgram(my cl_program 1, &my_cldevice, NULL, NULL, NULL))

c) Call clBuildProgram with the clProgram created from above.

 

b) and c) complete with no error 

 

However when I call clCreateKernel a CL_INVALID_KERNEL_NAME error is returned.

 

Should I expect the above to work? (If I use -cmd=build in my command line clCreateKernel cimpletes with no error. But it seems redundant to call clBuildProgram on a pre-built executable ,ir

 

I am using version 1.5.0.43 on a Broadwell device


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>