[Bug 991375] New: On Leap 42.2 Alpha3 and "Optimus" laptop OpenCL as installed doesn't work
http://bugzilla.opensuse.org/show_bug.cgi?id=991375 Bug ID: 991375 Summary: On Leap 42.2 Alpha3 and "Optimus" laptop OpenCL as installed doesn't work Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: X11 3rd Party Driver Assignee: xorg-maintainer-bugs@forge.provo.novell.com Reporter: bpesavento@infinito.it QA Contact: sndirsch@suse.com Found By: --- Blocker: --- On Leap 42.2 Alpha3 and "Optimus" laptop OpenCL as installed doesn't work: "optirun clinfo" returns "Number of platforms 0" instead of listing installed capabilities. Two workarounds are needed, as follows. BTW Leap 42.1 was also (and still is) affected. 1) A link is missing since /etc/OpenCL/vendors/nvidia.icd references "libnvidia-opencl.so.1" but no such file exists in /usr/lib64/nvidia/; worked around by: ln -s /usr/lib64/nvidia/libnvidia-opencl.so.361.45.11 /usr/lib64/nvidia/libnvidia-opencl.so.1 2) Device /dev/nvidia-uvm is missing; worked around by installing /etc/modprobe.d/50-nvidia.conf from bug bnc#879767 (which apparently is still alive and kicking BTW). I think that the two workarounds above, or any equivalents, should be included in the nvidia-compute package. Tested with the following packages: S | Name | Type | Version | Arch | Repository --+------------------------+---------+-----------------+--------+------------------ i | dkms-nvidia | package | 361.45.11-174.8 | x86_64 | nVidia latest i | dkms-nvidia-modeset | package | 361.45.11-176.8 | x86_64 | nVidia latest i | dkms-nvidia-uvm | package | 361.45.11-175.8 | x86_64 | nVidia latest i | kernel-default | package | 4.4.15-1.1 | x86_64 | 42.2 Current OSS i | kernel-default-devel | package | 4.4.15-1.1 | x86_64 | 42.2 Current OSS i | kernel-devel | package | 4.4.15-1.1 | noarch | 42.2 Current OSS i | kernel-firmware | package | 20160516git-1.1 | noarch | 42.2 Current OSS i | kernel-macros | package | 4.4.15-1.1 | noarch | 42.2 Current OSS i | nvidia-compute | package | 361.45.11-177.1 | x86_64 | nVidia latest i | x11-video-nvidia | package | 361.45.11-177.1 | x86_64 | nVidia latest i | x11-video-nvidia-devel | package | 361.45.11-177.1 | x86_64 | nVidia latest -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c1
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c2
--- Comment #2 from Bruno Pesavento
@1: I see these libs installed in /usr/lib64 # rpm -qplv nvidia-computeG04-367.35-25.1.x86_64.rpm |grep opencl lrwxrwxrwx 1 root root 26 Jul 26 13:56 /usr/lib64/libnvidia-opencl.so.1 -> libnvidia-opencl.so.367.35 -rwxr-xr-x 1 root root 8481000 Jul 26 13:56 /usr/lib64/libnvidia-opencl.so.367.35
Not sure why you expect them in /usr/lib64/nvidia ...
@2: Not sure what's wrong on your system with the current 50-nvidia.conf, it's based on the 50-nvidia.conf in bnc#879767. I'm afraid you need to debug yourself on your system, what's the issue here. I cannot reproduce.
Thanks Stefan for looking into this. @1: this is an "Optimus" notebook (Intel+Nvidia) with "bumblebee" installed, so when the nvidia chip is engaged (e.g. with "optirun darkroom" or "optirun clinfo") libnvidia* are searched in /usr/lib64/nvidia/. @2: apparently the problem is a wrong packaging of the "bumblebee project" nvidia-compute* packages. Looking at nvidia-computeG04-367.35-25.1.x86_64.rpm (the "regular" package you are using) I find indeed the needed 50-nvidia.conf and the two files /libnvidia-opencl.so.1 -> libnvidia-opencl.so.367.35. Unfortunately, being a "regular" installer, libraries go to /usr/lib64/, not what is expected on a "bumblebee" install. Looking at the nvidia-compute-<rev>.rpm packages from /repositories/home:/Bumblebee-Project:/nVidia:/ I can confirm that both 50-nvidia.conf and the /libnvidia-opencl.so.1 -> link are missing. So, on a current "bumblebee" install OpenCL is broken, unless my workarounds are applied. If there is a good reason for the current "bumblebee" packaging, at least we can refer to this bugreport when somebody occasionally complains that "OpenCL doesn't work" over the Forums. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
Bruno Pesavento
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c3
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c4
Bruno Pesavento
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c5
--- Comment #5 from Maxime Rijnders
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c6
--- Comment #6 from Bruno Pesavento
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c7
--- Comment #7 from Maxime Rijnders
http://bugzilla.opensuse.org/show_bug.cgi?id=991375
http://bugzilla.opensuse.org/show_bug.cgi?id=991375#c8
Bruno Pesavento
participants (1)
-
bugzilla_noreply@novell.com