summaryrefslogtreecommitdiff
path: root/utests/builtin_kernel_max_global_size.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix the condition to check if there are built-in kernelsGuo Yejun2016-08-311-1/+3
| | | | | | | | | an empty string is returned if no built-in kernels are supported by the device, and so the returned size is 1, not 0. v2: output "Skip!" to make the result clear Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* fix failed cases for stand alone utest;Luo Xionghu2016-04-221-1/+7
| | | | | | | | | | | 1. use clEnqueueMapBuffer/Image instead of clEnqueueReadBuffer/Image; 2. add sanity check for clEnqueueMapImage; v2: disable OpenCL 2.0 specific builtin cases for stand alone utest. v3: don't hide failed cases. fix utest build warnings. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* fix utest memory leak.Luo Xionghu2014-09-171-2/+3
| | | | | Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* fix clGetKernelWorkGroupInfo built-in kernel fail.Luo Xionghu2014-09-111-0/+30
add CL_KERNEL_GLOBAL_WORK_SIZE option for clGetKernelWorkGroupInfo. v2: should return the max global work size instead of current work size. This funtion need return CL_INVALID_VALUE if the device is not a custom device or kernel is not a built-in kernel. we have 3 kind of built-in kernels for 1d/2d/3d memories, the max global work size are decided by the dimension and memory type. the piglit fail is caused by calling NON built-in kernels, so need send patch to piglit later. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>