Bug 2916

Summary: CUDA / libcuda no longer recognised and used
Product: Fedora Reporter: qxc
Component: xorg-x11-drv-nvidiaAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED FIXED    
Severity: normal CC: julien.enche, ksee.zelgadis, rui.tech, s.adam
Priority: P5    
Version: 19   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: Nvidia bugreport Log

Description qxc 2013-08-10 20:16:37 CEST
Created attachment 1160 [details]
Nvidia bugreport Log

Since update to F19 CUDA / libcuda is no longer recognised and therefore not used by BOINC
Comment 1 Nicolas Chauvet 2013-10-05 20:48:15 CEST
Can you reproduce with current nvidia releases ?
Comment 2 qxc 2013-10-11 17:29:36 CEST
Sorry, still the same, BOINC tellse me "no usable GPUs found"
Comment 3 Nicolas Chauvet 2013-10-11 17:34:01 CEST
Do you have xorg-x11-drv-nvidia-devel installed ?
Does it solve something if you make a symlink
ln -s nvidia/libcuda.so /usr/lib64/libcuda.so
Comment 4 qxc 2013-10-12 16:41:42 CEST
> Does it solve something if you make a symlink
ln -s nvidia/libcuda.so /usr/lib64/libcuda.so

That did the trick! Or to be more exact, I created a symlink /usr/lib64/libcuda.so to /usr/lib64/nvidia/libcuda.so.1 - because there was no libcuda.so
Comment 5 Nicolas Chauvet 2013-10-21 21:35:17 CEST
Does it still works if you are using /usr/lib64/libcuda.so and point to /usr/lib64/nvidia/libcuda.so.1 (with /usr/lib64/libcuda.so removed)
Comment 6 qxc 2013-10-24 08:15:31 CEST
That's exactly what I've done and where it works with...
Comment 7 Nicolas Chauvet 2013-10-24 18:24:38 CEST
Sorry, I meant:
> Does it solve something if you make a symlink
ln -s nvidia/libcuda.so.1 /usr/lib64/libcuda.so.1
removing /usr/lib64/libcuda.so and nvidia/libcuda.so

We are not expected to have un-versionned shared object in /usr/lib64

Thx for your answear
Comment 8 Nicolas Chauvet 2013-11-06 22:13:03 CET
ping ?
Comment 9 qxc 2013-11-08 06:55:48 CET
Sorry, have been away for some time.

Using /usr/lib64/libcuda.so instead of /usr/lib64/libcuda.so.1 does not work.
Comment 10 Nicolas Chauvet 2013-12-15 16:36:29 CET
*** Bug 3006 has been marked as a duplicate of this bug. ***
Comment 11 julien.enche 2014-04-02 17:51:08 CEST
Is this bug supposed to be fixed ?
With the latest version, boinc and blender can't find any Cuda device, unless I rename the symlink /usr/lib64/libcuda.so.1 to /usr/lib64/libcuda.so

Let me know if you need more information or if you want me to do some tests.
Comment 12 Nicolas Chauvet 2014-04-12 11:51:28 CEST
(In reply to comment #11)
> Is this bug supposed to be fixed ?
It's clearly a bug in your application, thoses need to trust the system linker and use the provided libcuda.so.1 (not the symlink) I can only provide temporary workaround, but please tell where you have picked the version of blender and boinc ?
Comment 13 julien.enche 2014-04-14 15:23:53 CEST
I did my test with the official version of Blender available on their website and with BOINC installed from the Fedora repository.
Comment 14 Nicolas Chauvet 2014-04-14 19:28:35 CEST
(In reply to comment #13)
> I did my test with the official version of Blender available on their website
> and with BOINC installed from the Fedora repository.

Can you retry with the official blender fedora package and report a bug into boinc fedora ? It's forbidden to dlopen binaries from the unversioned shared object.
Comment 15 Konstantin Dmitriev 2014-05-01 13:14:11 CEST
Hello!
I have the same problem on Fedora 20 x86_64 with Blender (version from blender.org website) - no CUDA device available for selection in user preferences.

Creating link /usr/lib64/nvidia/libcuda.so -> /usr/lib64/nvidia/libcuda.so.1 OR /usr/lib64/libcuda.so -> /usr/lib64/nvidia/libcuda.so.1 solves problem for me.

Also, I already have a symlink /usr/lib64/libcuda.so.1 -> /usr/lib64/nvidia/libcuda.so.1, but Blender doesn't see CUDA device if I have no /usr/lib64/libcuda.so or /usr/lib64/nvidia/libcuda.so

This issue is affecting other users - http://blenderartists.org/forum/showthread.php?314212-Cycles-does-not-show-GPU-what-is-the-problem

Also tested with official blender package (blender-1:2.69-5.fc20). With official package I cannot get CUDA device available even if I have /usr/lib64/nvidia/libcuda.so or /usr/lib64/libcuda.so symlinks.

NvIdia driver version: xorg-x11-drv-nvidia-331.67-1.fc20.x86_64
Comment 16 Nicolas Chauvet 2015-01-05 00:26:39 CET
This should be fixed nowadays