2 Replies Latest reply on May 8, 2016 3:31 PM by boxerab

    Precautions needed before shipping compiled kernels


      I am preparing to ship a set of compiled kernels.


      I have followed instructions in the following article to strip out code and intermediate representations from the

      ELF binaries:




      Is there anything else I should do to discourage reverse engineering my kernels before I ship?





        • Re: Precautions needed before shipping compiled kernels

          OpenCL saved binaries can only be expected to work on the same driver and hardware they were generated on. They should not be considered suitable for executable code distribution, unless you control the target machines very tightly (such that they are known to have the same hardware and driver).


          Consider SPIR 1.2 or SPIR 2.0 today (and SPIR-V in the future) as a way of distributing your kernels without source. This may limit what hardware you can run on since SPIR x.x support was optional (SPIR-V is not, but there are no shipping drivers yet).