Bug 106037 - Incorrect size reported for CL_PROGRAM_NUM_KERNELS info
Summary: Incorrect size reported for CL_PROGRAM_NUM_KERNELS info
Alias: None
Product: Beignet
Classification: Unclassified
Component: Beignet (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Zhigang Gong
QA Contact:
Depends on:
Reported: 2018-04-13 19:54 UTC by apemanzilla
Modified: 2018-10-12 21:22 UTC (History)
1 user (show)

See Also:
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.