Hi, i'm trying to load a SPIR64 binary with the (latest?) 14.1 runtime on linux. I compiled the OpenCL C code with Kernel Builder to SPIR 64. The readable SPIR is converted to BC with llvm-link and spir_verifier says all is good to go. The code to link the binary at runtime:
cl::Program::Binaries bin; bin.push_back(std::make_pair((void*)llvm_start, llvm_size)); std::vector<int> status; cl_int err; cl::Program prog(_current_device->ctx, dev, bin, &status, &err); prog.build(dev, "-x spir -spir-std=1.2");
The build failed with CL_BUILD_PROGRAM_FAILURE and CL_PROGRAM_BUILD_STATUS = -2.
The build log does not provide any useful output:
Anyone here who has expirience with SPIR and Intel SDK and can provide some help?
Thanks in advance!