Bug 106037

Summary: Incorrect size reported for CL_PROGRAM_NUM_KERNELS info
Product: Beignet Reporter: apemanzilla
Component: BeignetAssignee: Zhigang Gong <zhigang.gong>
Status: RESOLVED MOVED QA Contact:
Severity: minor    
Priority: medium CC: apemanzilla
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description apemanzilla 2018-04-13 19:54:05 UTC
When calling clGetProgramInfo with CL_PROGRAM_NUM_KERNELS, size is reported for cl_uint, but the OpenCL specification dictates that it should be a size_t value. This seems to be caused by a minor typo here: https://github.com/intel/beignet/blob/master/src/cl_api_program.c#L57

Relevant specification: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/clGetProgramInfo.html
Comment 1 apemanzilla 2018-04-13 19:58:04 UTC
Typo is also present here: https://github.com/intel/beignet/blob/master/src/cl_program.h#L67
Comment 2 GitLab Migration User 2018-10-12 21:22:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/beignet/beignet/issues/8.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.