[pkg-nvidia-devel] RFC [patch 195xx] [13/k] package libOpenCL.so

Andreas Beckmann debian at abeckmann.de
Fri May 14 09:49:51 UTC 2010


Hi,

getting OpenCL support in may need a bit of discussion.

 * add packages for NVIDIA OpenCL support via installable client driver
   (ICD): nvidia-opencl-common, nvidia-opencl-icd,
   nvidia-opencl-icd-ia32,
   nvidia-libopencl1, nvidia-libopencl1-ia32, nvidia-libopencl1-dev

There are 6 new packages:

   nvidia-libopencl1
   nvidia-libopencl1-ia32
   nvidia-libopencl1-dev

contain libOpenGL.so.1 and the headers and from my point of view this
looks like a "wrapper" similar to libvdpau.so.1 and I expect there might
be a vendor independent implementation (free eventually?) available, so
I made provisions in order to have the nvidia libraries easily
replacable by libopencl1, lib32opencl1, libopencl1-dev

In order to make use of OpenCL we need a "vendor definition":

    nvidia-opencl-common

provides /etc/OpenCL/vendors/nvidia.icd, the vendors/ directory is
scanned by the library for *.icd and the .icd files contains the name of
a vendor library (libcuda.so in our case) to be dlopened for some OpenCL
entry point.

To glue this together I added a virtual package name "opencl-icd" that
should be available to actually make use of libopencl1. This is provided
by both

   nvidia-opencl-icd
   nvidia-opencl-icd-ia32

which both depend on nvidia-opencl-common and their corresponding cuda
library.

I assume that the ATI OpenCL SDK will provide a similar .icd file (which
could be delivered in some package providing opencl-icd, too) so that an
application can choose which OpenCL provider to use ...

A colleague of mine is working in GPGPU things, so he will be my testbed
for these packages and the upcoming nvidia-cuda-toolkit 3.0

Comments welcome!


Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ngd-195xx-14ofK-package-libOpenCL.so.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20100514/10c3025c/attachment.txt>


More information about the Pkg-nvidia-devel mailing list