nvidia.icd file is not present in nvidia-current 64bits. Fail to load opencl (like darktable)

Bug #1039684 reported by kikislater
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Nvidia
New
Undecided
Unassigned
darktable
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-319-updates (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Under Ubuntu 12.04 precise pangolin, I'm unable to load darktable with opencl with an optimus nvidia graphic card.

I've got this error :
$ optirun darktable -d opencl
[opencl_init] trying to load opencl library: ”
[opencl_init] opencl library ‘libOpenCL’ found on your system and loaded
[opencl_init] could not get platforms: -1001
[opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is OFF.

To solve the problem I have to create a file : nvidia.icd in /etc/OpenCL/vendors/ with the only content being libcuda.so

After that I got it working.

tags: added: darktable
tags: added: 295 304 nvidia opencl optimus
Revision history for this message
kikislater (kikiesttoujoursla) wrote :
Revision history for this message
K1773R (k1773r) wrote :

changing it to libcuda.so didnt work for me, ive put the following in: libnvidia-opencl.so.304.43
altough this isnt in combination with darktable. ( generic OpenCL app )

greetings

Revision history for this message
kikislater (kikiesttoujoursla) wrote :

You should try to with 295 driver if you use darktable

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
Michał (mr-mahon-pl)
affects: nvidia-graphics-drivers (Ubuntu) → darktable
Revision history for this message
Vít Šesták 'v6ak' (v6ak) wrote :

I've also noticed this bug.

If you want to fix it manually, simply use following command:

    echo libnvidia-opencl.so.1 | sudo tee /etc/OpenCL/vendors/nvidia.icd # for new drivers

or following one:

    echo libcuda.so | sudo tee /etc/OpenCL/vendors/nvidia.icd # for old drivers

I use the 12.04 LTS with nvidia-current-updates and ubuntu-x-swat/x-updates PPA, co I have to use the first command.

Revision history for this message
kikislater (kikiesttoujoursla) wrote :

Thanks for your reply

Revision history for this message
Michael Bewley (michael-bewley) wrote :

Note that with Ubuntu 13.10, and the 319-updates driver, I needed:

libnvidia-opencl.so.319.60

Found by looking at the "installed files" tab of nvidia-319-updates package in synaptic, and realising that libnvidia-opencl.so.1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-319-updates (Ubuntu):
status: New → Confirmed
Revision history for this message
ML (0cs935kb517wwmwa7m9428daadkye-m9u2-wz6bkyhu4uqpfausw0ege9b0y33eg) wrote :

Same for 14.04 and driver 340.93. Is there a solution?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.