Re: [Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Pan, Xiuli
Hi Sean, It seems we used to support the GL extension, and there are some problem with the wiki I think. Thanks Xiuli From: Song, Ruiling Sent: Wednesday, March 30, 2016 10:29 AM To: Sean Lynch ; Pan, Xiuli Cc: beignet@lists.freedesktop.org Subject:

Re: [Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Song, Ruiling
Beignet previously support a mesa version. But as mesa changes, things may not work correct now. So we disable the mesa extension in below commit. commit 47ebe2e96c777d9fd2ba07cef0e681eaff243fa1 Author: Zhigang Gong Date: Fri Dec 5 10:19:21 2014 +0800 CL: Don't

Re: [Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Pan, Xiuli
Hi Sean, Yes, we support those apis (you can find what we support from src/cl_api.c), but it seems there are some problems with the src/cl_khr_icd.c. I will send a patch about this and you can just remove the macro before this apis in cl_khr_icd.c and maybe they can work with pyopencl. I see

[Beignet] Fw: Skylake support ...

2016-03-29 Thread Jérôme Kieffer
On Fri, 25 Mar 2016 02:26:32 + "Pan, Xiuli" wrote: > Hi Jerome, > > Could you give us the device id of your new "Xeon v5"? As well as the linux > kernel version and libdrm version? > The beignet do support to skylake server gt4, you can check the id in >

Re: [Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Sean Lynch
Thanks for the pointer to that file. That's helpful. I'm using ocl-icd to load Beignet, because the Beignet package on Arch requires "libcl" and assumes you will be using an ICD loader. If I try to use Beignet's libcl.so directly, PyOpenCL fails to load with missing symbols for clCreateGLBuffer

[Beignet] [PATCH] libocl: Refine return type of workitem built-in functions

2016-03-29 Thread Xiuli Pan
From: Pan Xiuli Signed-off-by: Pan Xiuli --- backend/src/libocl/include/ocl_workitem.h | 20 ++-- backend/src/libocl/src/ocl_workitem.cl| 8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git

Re: [Beignet] [PATCH] Prepend std namespace to isnan and isinf calls.

2016-03-29 Thread Pan, Xiuli
LGTM! It seems may be the mathcalls.h have some small difference. Actually there is three types of isnan here: One is the #define isnan in math.h included by cmath Another is std::isnan in cmath The last one that are missing here is from mathcalls.h #if defined __USE_MISC || defined __USE_XOPEN

Re: [Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Pan, Xiuli
Hi Sean, It seems we do not support API clCreateFromGLTexture in beignet, you can get what api we support from the file src/cl_khr_icd.c. If PyOpenCL can run into this maybe there is something wrong with the device extension check either for them or for beignet. I will recheck about this and

[Beignet] [PATCH] Prepend std namespace to isnan and isinf calls.

2016-03-29 Thread Sean Lynch
Signed-off-by: Sean Lynch --- utests/builtin_acos_asin.cpp | 12 ++-- utests/builtin_exp.cpp | 12 ++-- utests/builtin_pow.cpp | 12 ++-- utests/builtin_tgamma.cpp| 4 ++-- utests/compiler_half.cpp | 4 ++--

[Beignet] clCreateFromGLTexture working?

2016-03-29 Thread Sean Lynch
I'm getting a segfault with the following stack when trying to call clCreateFromGLTexture from PyOpenCL (which just got preliminary support for it): #0 0x in ?? () #1 0x7f8b6af995bd in clCreateFromGLTexture () from /usr/lib/libOpenCL.so.1 #2 0x7f8b6b1f3a78 in