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

Tomasz Rybak tomasz.rybak at post.pl
Wed Jul 17 20:44:32 UTC 2013


Dnia 2013-07-17, śro o godzinie 22:27 +0200, Graham Inggs pisze:
> On 17 July 2013 22:03, Tomasz Rybak <tomasz.rybak at post.pl> wrote:
>         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.
> 
> 
> Ah, so it sounds like we need a breaks/replaces on libopencl1.
> 
>  
>         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
> 
> 
> And we need to provide opencl-icd as well then, as the Ubuntu nvidia
> driver package contains libOpenCL.so.1.0.0 and libnvidia-opencl.so.1.
> 
>  
> 
>         Does Ubuntu provide other OpenCL implementations,
>         for example beignet for Intel GPU, or the AMD one?
> 
> 
> We do have a beignet package in Saucy.  I see some of the older Ubuntu
> pyopencl merges replaced the dependency on 'opencl-icd' with 'fglrx |
> nvidia-current' so I assume that the AMD (fglrx) driver does contain
> an OpenCL implementation as well.

Yes, fglrx provides OpenCL implementation (I'm using it).
The best solution IMO would be to add
Provides: opencl-icd
to nvidia drivers, fglrx, and beignet, with proper dependencies.

One word of caution - different ICDs provide different OpenCL versions.
Beignet and fglrx provide OpenCL 1.2, while NVIDIA provides 1.1.
I build PyOpenCL for Debian using ocl-icd-libopencl1 - it is free
software (so I do not need to mess with pbuilder) and it works
well with all available ICDs. fglrx libopencl1 also works well
with NVIDIA ICD, while NVIDIA libopencl1 does not work at all with
AMD ICD. Yes, it can be messy sometimes.

Best regards.

-- 
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/5653408e/attachment.sig>


More information about the pkg-nvidia-devel mailing list