Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753797 - dev-util/opencl-headers-cpp c++ Khronos OpenCL CLHPP Headers ebuild similar to dev-util/opencl-headers
Summary: dev-util/opencl-headers-cpp c++ Khronos OpenCL CLHPP Headers ebuild similar t...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2020-11-10 07:35 UTC by Paul Preney
Modified: 2020-11-10 15:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Khronos OpenCL CLHPP v2.0.12 (June 2020) ebuild (opencl-clhpp-headers-2.0.12.ebuild,916 bytes, text/plain)
2020-11-10 07:35 UTC, Paul Preney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Preney 2020-11-10 07:35:38 UTC
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.
Comment 1 Marek Szuba (RETIRED) archtester gentoo-dev 2020-11-10 08:55:54 UTC
See dev-libs/clhpp.
Comment 2 Paul Preney 2020-11-10 14:56:42 UTC
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.
Comment 3 Marek Szuba (RETIRED) archtester gentoo-dev 2020-11-10 15:04:30 UTC
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.
Comment 4 Paul Preney 2020-11-10 15:25:53 UTC
Thanks.