[Mesa-dev] clEnqueueNDRangeKerne return error -52 with off-line compiled kernel

Tom Stellard tom at stellard.net
Fri Oct 17 13:54:32 PDT 2014


On Fri, Oct 17, 2014 at 05:34:40PM +0200, Vincent DEDIEU wrote:
> Hi
> 
>  
> 
> I compiled the very last mesa package (V10.4.0-devel) on Ubuntu-14.04 with
> AMD RADEON.
> 
>  
> 
> On a test program when I used clCreateProgramWithSource() and
> clBuildProgram(), my kernel works perfectly.
> 
>  
> 
> But when I tried to use an already compiled kernel with
> clCreateProgramWithBinary(), I get an error -52 later with
> clEnqueueNDRangeKernel().
> 

How did you create the binary that you passed to clCreateProgramWithBinary() ?

Also, do you know what mesa commit your packages were built from?  There
was a bug in program serialization that was recently fixed.

-Tom

>  
> 
> Of course I tried a very simple kernel such as:
> 
> __kernel
> 
> void pi(__global float * out)
> 
> {
> 
>   out[0] = 3.14159f;
> 
> }
> 
>  
> 
> The kernel is compiled with clCreateProgramWithSource() and
> clBuildProgram(). And the binary is stored in a file with
> clGetProgramInfo().
> 
>  
> 
> Anybody experienced this?
> 
>  
> 
> Note: if I used binary llvm/libclc/mesa packages (instead of compiling all
> of them) my test program works fine.
> 
>  
> 
> Thank you
> 
>  
> 
> Vincent
> 

> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list