Re: [Beignet] [PATCH v2] Enable OpenCL 2.0 only where supported

2017-01-24 Thread Rebecca N. Palmer
[New recipients: this is a reply to https://lists.freedesktop.org/archives/beignet/2017-January/008516.html ] On 24/01/17 08:58, Pan, Xiuli wrote: > And we have a conformance test with these patches, and the only problem is > that the sizeof(void *): > On GEN9 machine, the device will return 32

Re: [Beignet] [PATCH v2] Enable OpenCL 2.0 only where supported

2017-01-24 Thread Pan, Xiuli
Hi, I have send a patch set with some change in code style and some change in cmake. And we have a conformance test with these patches, and the only problem is that the sizeof(void *): On GEN9 machine, the device will return 32 due the CL1.2 backend is using but the host API query one returns

Re: [Beignet] [PATCH] FindLLVM: Accept LLVM 3.9

2017-01-24 Thread Pan, Xiuli
We have no test with llvm 3.4 now, but as we have no big changes I think llvm 3.4 can still work. -Original Message- From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Simon Richter Sent: Monday, January 23, 2017 7:12 PM To: beignet@lists.freedesktop.org Subject:

[Beignet] [PATCH 4/5] Utest: Add OCL20 into utest and check version in runtime

2017-01-24 Thread Xiuli Pan
From: Pan Xiuli The utest should always be built and we can check ocl version at the test begin. Contributor: Rebecca N. Palmer Signed-off-by: Pan Xiuli --- utests/CMakeLists.txt | 22 +-

[Beignet] [PATCH 5/5] Enable OpenCL 2.0 only where supported

2017-01-24 Thread Xiuli Pan
From: Pan Xiuli This allows a single beignet binary to both offer 2.0 where available, and still work on older hardware. V2: Default to 1.2 when -cl-std is not set (required by the OpenCL spec, and also likely to be faster). V3: Only enable OpenCL 2.0 when llvm version

[Beignet] [PATCH 1/5] API: Fix local memory type to CL_LOCAL

2017-01-24 Thread Xiuli Pan
From: Pan Xiuli We are using SLM as local memory and we should return CL_LOCAL for CL_DEVICE_LOCAL_MEM_TYPE. Signed-off-by: Pan Xiuli --- src/cl_gen75_device.h | 2 +- src/cl_gen7_device.h | 2 +- src/cl_gen8_device.h | 2 +- src/cl_gen9_device.h |

[Beignet] [PATCH 2/5] FindLLVM: Accept LLVM 3.9

2017-01-24 Thread Xiuli Pan
From: "Rebecca N. Palmer" Signed-off-by: Rebecca N. Palmer --- CMake/FindLLVM.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake index 6129909..5457f24 100644 ---

[Beignet] [PATCH 3/5] Utest: Fix an unused waring in 2.0 utest

2017-01-24 Thread Xiuli Pan
From: Pan Xiuli cpu_src has no use. Signed-off-by: Pan Xiuli --- utests/compiler_program_global.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utests/compiler_program_global.cpp b/utests/compiler_program_global.cpp index