[Bug 1129409] Re: Nvidia and AMD graphics drivers should indicate whether they provide libcuda.so.1, libOpenCL.so.1, etc.

nukedathlonman 1129409 at bugs.launchpad.net
Fri Jan 16 00:53:53 UTC 2015


I posted on bug # 1376587... I fixed a couple bugs regarding the AMD
Catalyst drivers...

Okay, so the replaces line needs to change to this:

Enhances: libopencl1
Replaces: fglrx-driver-core
Provides: fglrx-driver-core, opencl-icd, amd-opencl-icd

Fresh install, I had to get rid of libopencl1 in the repalces line as it causes a fight between packages..
I added the enhances line becasue, well, it enhances OpenCL with GPGPU support.

This allow's both the updates driver from the repo's  and the drivers
form AMD's website to install with wine gracefully.

Why the Enhances line - I noticed that OpenCL wasn't working on my
system.  SO a few more changes was in order:

In /usr/lib I create thed following symlink: libOpenCL.so and pointed it at libOpenCL.so.1
Then I created two more symlinks for completness: libOpenCL.so.1.1 and libOpenCL.so.1.2 and both of those pointed to libOpenCL.so (I did this incase AMD or someone decides that proviced libOpenCL.so.1 file name should be corrected to libOpenCL.so).

I then did the same in /usr/lib32

Then I went into /etc/OpenCL/venders and coped amdocl64.icd in the same dir but called it amdocl32.icd
I edited that file, and changed libamdocl64.so to libamdocl32.so

Next, in /etc/ld.so.conf.d I made a file called opencl-vender-amd.conf
and add the line: /etc/OpenCL/venders

I then ran ldconfig to finalise the settings.  Wine works fine as well
as GPGPU accelerated OpenCL (tested with BOINC).

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1129409

Title:
  Nvidia and AMD graphics drivers should indicate whether they provide
  libcuda.so.1, libOpenCL.so.1, etc.

Status in boinc package in Ubuntu:
  Fix Released
Status in fglrx-installer package in Ubuntu:
  In Progress
Status in fglrx-installer-updates package in Ubuntu:
  In Progress
Status in nvidia-cuda-toolkit package in Ubuntu:
  Fix Released
Status in nvidia-graphics-drivers-304 package in Ubuntu:
  Fix Released
Status in nvidia-graphics-drivers-304-updates package in Ubuntu:
  Fix Released
Status in nvidia-graphics-drivers-310-updates package in Ubuntu:
  Invalid
Status in nvidia-graphics-drivers-313-updates package in Ubuntu:
  Invalid
Status in nvidia-graphics-drivers-319 package in Ubuntu:
  Fix Released
Status in nvidia-graphics-drivers-319-updates package in Ubuntu:
  Fix Released
Status in nvidia-graphics-drivers-340 package in Ubuntu:
  Confirmed
Status in pycuda package in Ubuntu:
  Fix Released
Status in pyopencl package in Ubuntu:
  Fix Released
Status in starpu-contrib package in Ubuntu:
  Fix Released
Status in viennacl package in Ubuntu:
  Invalid
Status in nvidia-cuda-toolkit package in Debian:
  Fix Released

Bug description:
  The nvidia-cuda-toolkit package needs to depend on a minimum version of the CUDA library included in nvidia-graphics-drivers.
  The current Debian version of nvidia-cuda-toolkit (5.0.35-4) does this on Debian systems by checking the version of libcuda1 and on Ubuntu systems by checking the version of nvidia-current, nvidia-curent-updates, nvidia-experimental-304 or nvidia-experimental-310.

  It would greatly simplify maintenance of packages building against
  libcuda.so.1 and libOpenCL.so.1 if the nvidia-graphics drivers could
  provide virtual packages that reflect the API level, for example,
  libcuda-5.0-1 and libopencl-1.2-1.

  It was decided that the nvidia drivers packages will provide libcuda-5.0-1, libopencl1 and opencl-icd (LP: #763457) virtual packages. Additionally, nvidia-*.shlibs would contain:
  libOpenCL  1 libopencl1
  libcuda    1 libcuda-5.0-1
  libGL 1 libgl1

  Similarly, the amd drivers package will provide libopencl1 and opencl-icd virtual packages, as well as an .shlibs containing:
  libOpenCL  1 libopencl1
  libGL 1 libgl1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boinc/+bug/1129409/+subscriptions



More information about the Ubuntu-sponsors mailing list