I got a kernel which could be compiled using clc offline, and the .ll file is generated.
However, if the same kernel is loaded as source file and being complied during runtime, I will get the following error information using clGetProgramBuildInfo(),
"Internal error: Link failed.
Make sure the system setup is correct."
Which I have no idea on how to debug. Any suggestions or workarounds?
All the environment settings should be fine, as I can run all the example code in the StreamSDK2.01. And some other kernels I have written are working pretty well.