diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-06-25 14:15:09 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-06-26 16:25:03 +0800 |
commit | cdb8cc2077441b15bc9a7ec7d77fc12e560de475 (patch) | |
tree | f872dd791c8d78776e7f72e63db9ce0f54296634 /src | |
parent | 0162069da450345c9c411b8cc9b68820d3b9ae25 (diff) | |
download | beignet-cdb8cc2077441b15bc9a7ec7d77fc12e560de475.tar.gz |
Refine the get_local_id/... builtins.
As we could prepare correct value on runtime library side and give
a correct value in the payload for dim 0, 1 and 2. So for these 3
dim argument, we don't need to check it whether in the valid range,
we just read the payload's value.
This way, we can avoid any unecessary branching for normal usage of
these builtin functions. And could avoid a known bool related bug.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Sun, Yi <yi.sun@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cl_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_api.c b/src/cl_api.c index f7db4bc8..bb09c07d 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -1581,7 +1581,7 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue, { size_t fixed_global_off[] = {0,0,0}; size_t fixed_global_sz[] = {1,1,1}; - size_t fixed_local_sz[] = {16,1,1}; + size_t fixed_local_sz[] = {1,1,1}; cl_int err = CL_SUCCESS; cl_uint i; |