I use OpenCL for integrated GPU. Everything is ready, except how to protect kernel code. I know this is an old topic.
I have tried to translate the kernel code to SPIR code. but anybody can get II code through SPIR , using llvm-dsi. Because integrated GPUs only support OpenCL1.2, GPU can't use SPIR-V code. So is there a better way to protect kernel code?
Link Copied
This article has more details on the options available today:
As far as I know it lists all of them.
I suspect what you're looking for is SPIR-V. It's an improvement on SPIR but that is more of an answer to look forward to in the future than something you could switch to today.
For more complete information about compiler optimizations, see our Optimization Notice.