how to generate binaries using offline compiler?

how to generate binaries using offline compiler?

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?

3 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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

It works, thank you!

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!