spectral

Load/Save binary kernels

Discussion created by spectral on Jul 25, 2011
Latest reply on Jul 26, 2011 by spectral

Hi,

I'm currently saving/loading binary kernels and have some questions :

1) Is there a "platform ID" and a "device ID" that I can use to identify my binary file. I would like to be able to save my file "xxxx_PLATFORMID_DEVICE_ID.bin"

But later, being able to copy theses ".bin" file to another machine. The platform ID and device ID must identify the specific platform and device even on different machines.

2) Is there a way to save a "library" and not a complete "program". In my application I have 95% of the code in ".cl" files but 5% that is generated at run-time. So, I would like to avoid to recompile 100% and maybe merge a "bin" file with the 5% remainder of the program ?

Thanks

Outcomes