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
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
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
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
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 +