OpenCL 1.2 headers package

Tomasz Rybak bogomips at post.pl
Sat Feb 18 16:57:07 UTC 2012


On Sat, 2012-02-18 at 03:14 +0100, Andreas Beckmann wrote:
> On 2012-01-25 14:09, Tomasz Rybak wrote:
> > On Tue, 2012-01-24 at 23:42 +0100, Tomasz Rybak wrote:
> >> So do not upload new headers into unstable until there is
> >> OpenCL 1.2 provider. But thanks for preparing package, and
> >> please leave it in experimental - I will try to play with
> >> it a little more.
> [...]
> > It looks like library exports OpenCL 1.2 functions, but does
> > not provide implementation of them. clinfo returns 1.1 as
> [...]
> > In summary, OpenCL 1.2 is really experimental for now.
> 
> There are now newer drivers in the archive:
> * fglrx 12-1-1
> * nvidia 295.20
> * nvidia-cuda-toolkit 4.1 RC2 (in experimental)
> 
> Does this change anything w.r.t. to OpenCL 1.2?

I have just tested new CUDA toolkit.
Neither NVIDIA (with 4.1.21 toolkit and 295.20 drivers)
nor AMD (with 12-1 drivers) provide final OpenCL 1.2 implementation.

> 
> Otherwise I'll add
>  Depends: opencl-headers (<< 1.2)
> to the packaging of the cuda toolkit 4.1 release.

Please do not add versioned dependency to entire CUDA toolkit,
but only to nvidia-libopencl1. This way, when AMD releases
OpenCL 1.2 libraries one will be able to install AMD OpenCL libraries
with 1.2 headers and NVIDIA OpenCL libraries and have OpenCL 1.2
on CPU and OpenCL 1.1 on GPU.
Currently one can install either nvidia-libopencl1 or amd-libopencl1,
with opencl-headers, and as many *-opencl-icd packages as possible.
From my experiments amd-libopencl1 works OK with amd-opencl-icd
and nvidia-opencl-icd (except for strange PyOpenCL error,
reported here: http://devgurus.amd.com/thread/158647 ) while
nvidia-libopencl1 does not work so well with AMD libraries.
I would like to be able to mix OpenCL libraries on any hardware.

So I think the only packages with versioned dependencies on
opencl-headers should be nvidia-libopencl1 and amd-libopencl1,
as they contain OpenCL library that programs link to.

*-opencl-icd should not depend on particular version of headers.
This way platform will have the same version as headers, and
devices will provide any OpenCL capabilities they can.

I hope I have not complicated this too much.

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/20120218/c9405811/attachment-0001.pgp>


More information about the pkg-nvidia-devel mailing list