Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372847 - eselect-opencl new package request
Summary: eselect-opencl new package request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 391131 opencl-tracker
  Show dependency tree
 
Reported: 2011-06-24 14:51 UTC by Nikolay Antonov
Modified: 2012-02-04 12:42 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Antonov 2011-06-24 14:51:20 UTC
nvidia-cuda-sdk, ati-stream-sdk/amd-app-sdk[1][bug 257626], intel-opencl-sdk[2] and may be ibm OpenCL runtime[3] provide /usr/lib/libOpenCL.so and opencl headers, so it is good idea to provide a way to install this SDKs at once.
So eselect-opencl will be a good solution.

not 100% working eselect-opencl already in pentoo overlay, but it doesn't do symlinks to headers, it doesn't support latest versions of amd-app-sdk(fails to do symlinks)

[1] http://developer.amd.com/sdks/AMDAPPSDK/Pages/default.aspx
[2] http://software.intel.com/en-us/articles/opencl-sdk/
[3] http://www.alphaworks.ibm.com/tech/ocr
Comment 1 Nicolas Bigaouette 2011-08-02 17:16:25 UTC
I've began working on this. See https://forums.gentoo.org/viewtopic-p-6772852.html
Comment 2 Enrico Tagliavini 2011-11-19 13:20:18 UTC
As the comantainer of ati-drivers i'm also interested in this package. Now ati-drivers provides OpenCL libraries and libOpenCL.so can of course conflict with the one from nvidia-drivers (hint: sabayon install both by default).

From ati-drivers-11.11 opencl libraries are installed only if built with opencl USE flag
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-19 16:13:33 UTC
Considering interested parties, can't we merge this with eselect-opengl?
Comment 4 emil karlson 2011-12-26 03:58:01 UTC
See https://bugs.gentoo.org/show_bug.cgi?id=396033 .

Basically all OpenCL implementations can coexist and be available without eselect with icd interface.
Comment 5 Enrico Tagliavini 2011-12-26 11:39:31 UTC
(In reply to comment #4)
> See https://bugs.gentoo.org/show_bug.cgi?id=396033 .
> 
> Basically all OpenCL implementations can coexist and be available without
> eselect with icd interface.

freeocl doesn't sound as a solution to me. It is "an implementation of the Open Computing Language 1.1 specifications targeting CPUs" so it is not designed as a wrapper.

About ICDs you are right, but the libOpenCL.so file collision between different vendors is always there, but eselecting it is dead easy if all libs are in the same place.
Comment 6 emil karlson 2011-12-26 15:41:10 UTC
As far as I know any libOpenCL.so* is functionally exactly the same icd wrapper and there is no reason to install more than one.

If freeocl lib itself is about 1MB (+cmake +openmp). We  can remove everything that's not libOpencl.so* or include/CL and call it libicd oslt. Being opensource it's easy to fix, whenever there is a problem. This can be discussed with upstream, if the icd solution is considered as a viable option to eselect-opencl.

Though there are mostly no downsides to eselect-opencl either.
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-12-26 21:06:19 UTC
(In reply to comment #6)
> As far as I know any libOpenCL.so* is functionally exactly the same icd wrapper
> and there is no reason to install more than one.
>
> If freeocl lib itself is about 1MB (+cmake +openmp). We  can remove everything
> that's not libOpencl.so* or include/CL and call it libicd oslt. Being
> opensource it's easy to fix, whenever there is a problem. This can be discussed
> with upstream, if the icd solution is considered as a viable option to
> eselect-opencl.

It's quite the opposite. Freeocl is yet another provider of libOpenCL.so + CL/headers that carelessly installs itself into /usr creating conflicts and thus PITA for package maintainers. Eselect will allow to sort this mess out. Being able to chose implementation is just a fancy by-product, as you've already mentioned it doesn't really matter which libOpenCL you use.
 
> Though there are mostly no downsides to eselect-opencl either.
Comment 8 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-04 12:42:19 UTC
*eselect-opencl-1.1.0 (21 Jan 2012)

  21 Jan 2012; Kacper Kowalik <xarthisius@gentoo.org>
  +eselect-opencl-1.1.0.ebuild, +metadata.xml:
  Initial import