Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

is this a bug with intel opencl compiler?

$
0
0

 

    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 !!!
AttachmentSize
DownloadoclTest_0.cpp8.69 KB
Downloadcl+ir.7z1.97 KB

Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>