My project work well if i compile it from opencl source file(test.cl) with clCreateProgramWithSource function. and save the cl program binary into an ir file(test.ir). When i recompile the cl program with clCreateProgramWithBinary , it gets an error while clBuildProgram is called.
The same code works well both on NVIDIA and AMD GPU platforms, except the intel mic card(5110p).
Is there something wrong with my code or intel opencl sdk?
This problem has trapped me for a long time, can anyone help me? It is very important for me, thank you!
comile command: /opt/intel/bin/icpc -g -o test -I/opt/intel/opencl-sdk/include -L/opt/intel/opencl/lib64 -lOpenCL *.cpp run command: ./test test.cl -debug output: CL_PLATFORM_NAME: Intel(R) OpenCL CL_PLATFORM_VERSION: OpenCL 1.2 LINUX run command: ./test test.ir output: CL_PLATFORM_NAME: Intel(R) OpenCL CL_PLATFORM_VERSION: OpenCL 1.2 LINUX Error CL_INVALID_PROGRAM in oclLogBuildInfo Call !!!