Objective: To create an offline binary of a opencl Kernel which can be used across multiple platform (linux, win, mac) and/or multiple system( amd, nvidia or intel).
From what I’ve read this looks possible only with khronos provided clang compiler. Please correct me if I’m wrong.
Progress till now : Cloned and built clang compiler from below mentioned links.
Created the binary with clang, but i’m stuck at clBuildProgram() with INVALID_BINARY error.
Please let me know if the assumptions made are correct. If yes can I find a working sample for this purpose ?