[Beignet] [PATCH v3 08/10] gbe: add vec_type_hint's type into functionAttributes.

2015-12-02 Thread xionghu . luo
From: Luo Xionghu for SPIR kernel, user may call clGetKernelInfo with CL_KERNEL_ATTRIBUTES to query the functionAttributes. v2: remove debug code. v3: fix llvm 3.5 build fail. Signed-off-by: Luo Xionghu --- backend/src/ir/type.cpp | 6 +-- backend/src/llvm/llvm_gen_backend.cpp

Re: [Beignet] [PATCH OCL2.0 1/2] libocl: Add three work-item built-in function

2015-12-02 Thread He Junyan
I think that it can also be merged to master. On Thu, Dec 03, 2015 at 12:34:26PM +0800, He Junyan wrote: > Date: Thu, 3 Dec 2015 12:34:26 +0800 > From: He Junyan > To: beignet@lists.freedesktop.org > Subject: Re: [Beignet] [PATCH OCL2.0 1/2] libocl: Add three work-item > built-in function > > L

Re: [Beignet] [PATCH OCL2.0 1/2] libocl: Add three work-item built-in function

2015-12-02 Thread He Junyan
LGTM, thanks. On Wed, Dec 02, 2015 at 04:57:38PM +0800, Pan Xiuli wrote: > Date: Wed, 2 Dec 2015 16:57:38 +0800 > From: Pan Xiuli > To: beignet@lists.freedesktop.org > Cc: xiuli@intel.com > Subject: [Beignet] [PATCH OCL2.0 1/2] libocl: Add three work-item built-in > function > X-Mailer: git

[Beignet] [PATCH OCL2.0 1/2] libocl: Add three work-item built-in function

2015-12-02 Thread Pan Xiuli
Add get global/local linear id by calculate with global/local id, size and offset. The get_queue_local_size() and get_loal_size() should be different when the global work group size is not uniform, but now they are the same. We will refine these functions when we support non-uniform work-group size

[Beignet] [PATCH OCL2.0 2/2] Utest: Add test for get_global/local_linear_id

2015-12-02 Thread Pan Xiuli
Add two utest case test for OCL2.0 new work-item built-in functions. Signed-off-by: Pan Xiuli --- kernels/builtin_global_linear_id.cl | 4 ++ kernels/builtin_local_linear_id.cl | 6 +++ utests/CMakeLists.txt | 4 +- utests/builtin_global_linear_id.cpp | 89 +