[Pkg-opencl-devel] OpenCL Headers and Loader pkg-config files

Videau, Brice bvideau at anl.gov
Tue Nov 29 19:32:35 GMT 2022


Hello,

At the Khronos OpenCL working group we are working toward improving the 
official OpenCL loader portability, and as part of this effort, we were 
asked recently to add pkg-config support to the loader (see 
https://github.com/KhronosGroup/OpenCL-ICD-Loader/issues/187 
https://github.com/KhronosGroup/OpenCL-ICD-Loader/pull/190 
https://github.com/KhronosGroup/OpenCL-Headers/pull/213), something 
ocl-icd already provides.
 From the OpenCL project perscpective, it would make sense to have 
separate pkg-config files for the loader and the headers, the loader one 
would depend on the header's one.
Though the idea is appealing to us, given that headers and loaders are 
often installed with different prefixes in order to switch between the 
Khronos loader and ocl-icd, or to accommodate several versions, 
especially when using environment modules.
Nonetheless, we are worried about added complexity for Linux 
distribution maintainers.

Would splitting OpenCL pkg-config file into Headers and Loader be a 
problem for distribution maintainers and more specifically Debian?

If the new scheme is adopted, I would be able to transition ocl-icd to 
it as well.

Thanks,
Brice


More information about the Pkg-opencl-devel mailing list