@Graham libviennacl-dev has a build-depends on libopencl1 (virtual) and
does not specify a suggested implementation (although this is against
policy, so probably can be filed as a bug against that package) .

opencl loaders *should* be interchangeable if they follow the
traditional virtual package definition, but due to the vendor issue in
implementations this is not always the case.  Any package that has a
build-depends on libopencl1 without specifying ocl-icd-opencl1 as the
recommended dependency will depend on whatever buildd decides to pull to
satisfy that dependency.

I see this becoming an issue in the future. This has been discussed in
debian (http://anonscm.debian.org/gitweb/?p=collab-maint/ocl-
icd.git;a=blob;f=debian/README.Debian;hb=HEAD) See for instance line
#310

Even that debian readme is out of date, I have had trouble exchanging
Intel-opencl and ocl-opencl between compile time and runtime. I see this
becoming a bigger issue in the future, the consortium members are not
doing a good job at maintaining symbol compatibility and are more
concerned with vendor specific extensions to OpenCL, I feel that Ubuntu
should nip it in the bud as early as possible and require all build-
depends and depends to point to ocl-icd and have the virtual-package
libopencl1 point only to the open implementation.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/1328542

Title:
  [xorg-edgers] OCL-ICD provides a free generic OpenCL implementation,
  should ubuntu policy be to build applications against this loader vs
  closed vendor implementations

Status in “fglrx-driver” package in Ubuntu:
  Confirmed
Status in “nvidia-graphics-drivers” package in Ubuntu:
  Confirmed
Status in “ocl-icd” package in Ubuntu:
  Confirmed

Bug description:
  Relevant Packages: ocl-icd-libopencl1

  Applications that wish to use OpenCL encounter a few problems when you
  attempt to distribute them.

  PROBLEM:

  Applications compiled against one implementation of OpenCL
  (libOpenCL.so) will not run on a system with another implementation
  installed. OpenCL loader library is supposed to be agnostic to the
  kernel loaded (nvidia libOpenCL.so will run amd kernels for example)
  but testing has shown significant performance differences when using
  OpenCL implementations from different vendors. System must have
  libOpenCL.so used at build time in order to run an application using
  OpenCL

  As the number of OpenCL applications grows there will be packaging
  conflicts between those built against nvidia/ocl and potentially other
  vendor OpenCL implementations as they are added to ubuntu.

  Solution:

  ocl-icd-libopencl1 (http://packages.ubuntu.com/trusty/ocl-icd-
  libopencl1) provides an open source implementation of libOpenCL.so
  that will work with vendor OpenCL kernels files provided by
  intel/nvidia/amd.

  Policy for packages to use ocl-icd as the default implementation,
  allowing the use of other kernel loaders for alternative packages in
  the same source package(if desired)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fglrx-driver/+bug/1328542/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to