Created attachment 670667 [details] Khronos OpenCL CLHPP v2.0.12 (June 2020) ebuild Gentoo has dev-util/opencl-headers which are the C language headers for the OpenCL API but unfortunately it does not have the C++ headers for the same (i.e., https://github.com/KhronosGroup/OpenCL-CLHPP ). Attached is an ebuild to install such with these convenience additions: * CL/cl.hpp and CL/opencl.hpp are symlinked to CL/cl2.hpp where: * CL/cl.hpp is an older name for the C++ v1 API. * CL/opencl.hpp is the main header in the latest GIT master (which has no version assigned) with the CL/cl2.hpp header giving deprecation notices. The two symlinks are easily removed from the ebuild if not desired (since those symlinks are not in the Khronos repository). That said, having these files symlinked would likely help developers "upgrade"/patch OpenCL C++ API code. NOTE: v2.0.12 is the last versioned tag in the Khronos OpenCL-CLHPP git repository.
See dev-libs/clhpp.
I did not know of dev-libs/clhpp which elicits two questions: * Why is "clhpp" in "dev-libs" yet "opencl-headers" is in "dev-util"? * Why does "clhpp" does not have "opencl" in its name? both would help with discoverability and would be more consistent.
Alas, I cannot help you with these questions because I've only been co-maintaining this package since April 2020 and the package in question has been in the tree since almost exactly a year earlier than that. I guess it made sense at the time.
Thanks.