[Pkg-opencl-devel] Alternatives system for libOpenCL?

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Fri Jul 22 21:35:52 UTC 2016


Hello,

I would like to suggest enabling an alternatives-based system for
libOpenCL.so. Although allowing multiple libOpenCL so to coexist isn't
crucial, there's a few contexts where it can come useful, such as
debugging lower-level issues, easily testing programs across multiple
versions of the library, and last but not least not having the
installation busted by the rather aggressive Intel OpenCL runtime for
Ubuntu.

To clarify: the Intel OpenCL runtime for Ubuntu replaces the
libOpenCL.so and libOpenCL.so.1 links installed by e.g.
ocl-icd-libopencl1 with links to the alternatives system, that point
at Intel's own libOpenCL.so by default, and require manual
intervention to go back to using ocl-icd.

We could probably use the same alternatives system used by Intel,
which is a main opencl-
libOpenCL.so  and a slave opencl-libOpenCL.so.1

We could add the same mechanism also to ocl-icd-libopencl1 and
probably also the other proprietary drivers.


-- 
Giuseppe "Oblomov" Bilotta



More information about the Pkg-opencl-devel mailing list