[Pkg-opencl-devel] Bug#1117985: opencl-clhpp-headers: clGetExtensionFunctionAddressForPlatform used without checking API version

Andreas Beckmann anbe at debian.org
Tue Oct 14 22:20:49 BST 2025


Control: tag -1 upstream

On 10/13/25 11:51, Bob Ham wrote:
> Package: opencl-clhpp-headers
> Version: 3.0~2024.10.24-2
> Severity: important
> 
> Almost everywhere in opencl.hpp, calls to
> clGetExtensionFunctionAddressForPlatform, via
> CL_HPP_INIT_CL_EXT_FCN_PTR_PLATFORM_, are within #ifdef's to check the
> API version, for example:

> except in initMemoryExtension where there is no guard:

> Because clGetExtensionFunctionAddressForPlatform is specific to CL 1.2
> and greater, this lack of #ifdef's causes errors when limiting the API
> to CL 1.1.  For example:

Thanks for catching this. Please file a bug upstream for
a) the tests not testing this combination and therefore not catching 
this error
b) the missing #ifdefs

Thanks

Andreas



More information about the Pkg-opencl-devel mailing list