more virtual packages for providing libcuda.so.1 and libOpenCL.so.1

Tomasz Rybak tomasz.rybak at post.pl
Wed Jul 17 20:03:56 UTC 2013


Dnia 2013-07-17, śro o godzinie 21:47 +0200, Graham Inggs pisze:
> Hi Thomas
> 
> 
> On 17 July 2013 21:30, Tomasz Rybak <tomasz.rybak at post.pl> wrote:
>         PyOpenCL maintainer here.
> 
> 
> Thanks for the reply!
>  
> 
>         The only _real_ binary dependency of PyOpenCL is libopencl1,
>         which is supposed to load ICD.
>         PyOpenCL depends on opencl-icd to ensure that package is
>         usable
>         which means that at least one of the ICDs is present and can
>         be used.
> 
> 
> Currently you have:
> 
> 
> 
> Package: python-pyopencl
> Architecture: amd64 i386
> Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
>  ocl-icd-libopencl1 | libopencl1,
>  opencl-icd,
>  python-numpy,
>  python-pytools (>= 2011.5)
> 
> 
> We have just updated the Nvidia graphics drivers in Ubuntu to provide
> libopencl1, but we don't provide opencl-icd.
> 
> From the Depends above, it looks like we need to provide libopencl1
> *and* opencl-icd.

I do not know how it is done in Ubuntu.
In Debian we have libopencl1 which manages OpenCL ICDs.
It looks at files in /etc/OpenCL/vendors/*.icd, loads all libraries
pointed by those files, and provides OpenCL user with ability
to choose one (or more) implementations.
So libopencl1 is OpenCL management library (there can be only one
such library installed on the system) and opencl-icd is OpenCL
implementation - there can be many of them.
nvidia-libopencl1 contains libOpenCL.so.1.0.0
nvidia-opencl-icd contains libnvidia-opencl.so.1
So if Ubuntu NVIDIA driver contains both of those
files, it should (IMO) provide both libopencl1 and opencl-icd

Does Ubuntu provide other OpenCL implementations,
for example beignet for Intel GPU, or the AMD one?
The strength of libopecl1 + ICD model lies in ability
to have many OpenCL implementations; if you do have only
NVIDIA one the easiest solution (for now) would be to remove
dependency on opencl-icd in PyOpenCL *-1ubuntu1.

Best regards.


> 
> 
> 
> Regards
> Graham
> 
> 

-- 
Tomasz Rybak  GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20130717/fdb825de/attachment.sig>


More information about the pkg-nvidia-devel mailing list