Altera_Forum
Honored Contributor
10 years agoOdd clBuildProgram function error
Hi everyone,
I am actually working on implementing an existing GPU OpenCL benchmark on an FPGA. Recently I am stucked on a really strange problem: I am trying to run the simulation of one of the kernel of the frame-work and I succefully ended up with the .aocx file. Then I built the OpenCL environment (platform, context, device, program ...) in the benchmark host code, and when I come across the clBuildProgram function I had the error CL_BUILD_PROGRAM_FAILURE. So I have tried to use the clGetProgramBuildInfo function to get a log and find out the error but in this case the function was not even able to get the lenght of the log. Then I used the same .aocx in a host code of an example (made explicitily to run a simple OpenCL vector sum) and there the clGetProgramBuildInfo is not giving any errors. So basically that is the situation: the same .aocx file works in the example host code but not in the benchmark one. In addition, the code in the OpenCL enviroment setting in both host codes (benchmark and example) are the same. So I would like to know if somebody has an idea of where the problem could be. Thanks ahead.