[Beignet] [Linux-gfx] OpenCL clGetDeviceIDs error

Zhigang Gong zhigang.gong at linux.intel.com
Fri Apr 11 00:03:45 PDT 2014


That error indicates the kernel build  may fail. You may need to check the
build log to see what happened.

Or an easy try is to set an environment:

export OCL_OUTPUT_BUILD_LOG

Then beignet will print some build messages which might helpful to identify
what's going wrong.

 

CC to the list.

 

From: Tan, Wei Chong [mailto:wei.chong.tan at intel.com] 
Sent: Friday, April 11, 2014 2:40 PM
To: Zhigang Gong
Subject: RE: [Linux-gfx] OpenCL clGetDeviceIDs error

 

Hi Zhigang,

 

I am able to execute beyond clGetDeviceIDs now.

However, I'm getting this instead:

Error! clCreateKernel(-45) : CL_INVALID_PROGRAM_EXECUTABLE

 

The same kernel/shader was compiled correctly in Windows using Intel OpenCL
Application Kernel Builder, which compiles the kernel/shader independently
outside the host program and output any potential error message.

I wonder if I can also compile with Beignet's backend compiler (is it LLVM?)
in standalone mode so that I can know exactly what is the error that caused
CL_INVALID_PROGRAM_EXECUTE.

 

Thanks.

Wei Chong.

 

From: Zhigang Gong [mailto:zhigang.gong at linux.intel.com] 
Sent: Thursday, April 10, 2014 6:02 PM
To: Tan, Wei Chong; linux-gfx at linux.intel.com
<mailto:linux-gfx at linux.intel.com> 
Cc: beignet at lists.freedesktop.org <mailto:beignet at lists.freedesktop.org> 
Subject: RE: [Linux-gfx] OpenCL clGetDeviceIDs error

 

Beignet currently only support ivb GT1 and GT2.  The support for baytrail is
not complete yet.

You can try the first patch at beignet mail list:

http://lists.freedesktop.org/archives/beignet/2014-April/002729.html

 

If your baytrail board has the same device id as the above patch's (0x0F31),
then it could fix the error you met.

But it could not pass all the unit tests, we are investigating now.

 

 

From: linux-gfx-bounces at linux.intel.com
<mailto:linux-gfx-bounces at linux.intel.com>
[mailto:linux-gfx-bounces at linux.intel.com] On Behalf Of Tan, Wei Chong
Sent: Thursday, April 10, 2014 5:30 PM
To: linux-gfx at linux.intel.com <mailto:linux-gfx at linux.intel.com> 
Subject: [Linux-gfx] OpenCL clGetDeviceIDs error

 

Hi,

 

I just built a Beignet OpenCL, on a Baytrail platform following the steps in
the foil here:

http://software.intel.com/sites/default/files/Create,%20Build%20Open%20CL-be
ignet.pdf

 

The build was smooth.

I am also able to compile and link my test app against it, using the option
below:

 

clang++ -std=c++11 -g -o WrapperForOpenCL_Client-OpenCL.elf
WrapperForOpenCL_Client.cpp WrapperForOpenCL.cpp -lOpenCL -lXext -lXfixes
-lX11 -lpthread

or

clang++ -std=c++11 -g -o WrapperForOpenCL_Client-cl.elf
WrapperForOpenCL_Client.cpp WrapperForOpenCL.cpp -L/usr/local/lib/beignet
-lcl -lXext -lXfixes -lX11 -lpthread

 

However, when I try to run it, I get the below error:

terminate called after throwing an instance of 'cl::Error'

   what(): clGetDeviceIDS

Aborted (core dumped)

 

Any guidance would be appreciated, thanks.

 

Regards,

Wei Chong.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20140411/b3997e31/attachment.html>


More information about the Beignet mailing list