OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

how to generate binaries using offline compiler?

TY
Beginner
217 Views

how to generate binaries using offline compiler, so that the binary can later be loaded up and processed using "clCreateProgramWithBinary"?

I tried using ioc64 on some examples, but it doesn't seem that any binary file has been generated. For example:

--------------------------------------------

ioc64 -cmd="Build" -input=MedianFilter.cl

Output:

Using default instruction set architecture.
Intel OpenCL CPU device was found!
Device name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Device version: OpenCL 1.2 (Build 42537)
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
Compilation started
Compilation done
Linking started
Linking done
Kernel <MedianFilterBitonic> was successfully vectorized
Done.
Build succeeded!

--------------------------------------

And then what? Where's the binary?

0 Kudos
2 Replies
Uri_L_Intel
Employee
217 Views
In order to get the program intermediate binary file you should use the "-ir[=]" command switch. For example: ioc64 -cmd="Build" -input=MedianFilter.cl -ir=MedianFiler.ir For more information on how to use the Offline Compiler tool and its features, please refer to the product's user guide on: http://software.intel.com/sites/landingpage/opencl/user-guide/index.htm Thanks, Uri
TY
Beginner
217 Views
It works, thank you!
Reply