Summary: | x11-drivers/nvidia-drivers-304.37 - media-gfx/darktable cannot initialize OpenCL | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Serge Gavrilov <serge> |
Component: | [OLD] Library | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer, siarhei.siamashka, spock, xarthisius |
Priority: | Normal | Keywords: | EBUILD, PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=432252 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | corrected ebuild |
Description
Serge Gavrilov
2012-08-19 21:20:51 UTC
Comparing with files installed by Ubuntu https://sourceforge.net/mailarchive/message.php?msg_id=29695412 and Arch https://www.archlinux.org/packages/extra/i686/opencl-nvidia/ it seems that gentoo ebuild does not install /usr/lib/libnvidia-opencl.so.304.37 (and also libnvidia-wfb.so.304.37 but perhaps this is an another problem) This seems to be a source of the problem. I just have verified that installing of /usr/lib/libnvidia-opencl.so.304.37 and substituting of /usr/lib/libnvidia-opencl.so instead of /usr/lib/libcuda.so in /etc/OpenCL/vendors/nvidia.icd fixes the bug. I am not sure what is libnvidia-wfb.so.304.37 Created attachment 321726 [details]
corrected ebuild
I attach the ebuild fixing the bug
Comment on attachment 321726 [details]
corrected ebuild
--- nvidia-drivers-304.37.ebuild 2012-08-17 00:31:37.000000000 +0200
+++ - 2012-08-20 02:46:25.636469078 +0200
@@ -140,7 +140,7 @@
convert_to_m "${NV_SRC}"/Makefile.kbuild
fi
cat <<- EOF > "${S}"/nvidia.icd
- /usr/$(get_libdir)/libcuda.so
+ /usr/$(get_libdir)/libnvidia-opencl.so
EOF
# Allow user patches so they can support RC kernels and whatever else
@@ -370,6 +370,7 @@
# CUDA & OpenCL
if use kernel_linux; then
donvidia ${libdir}/libcuda.so ${NV_SOVER}
+ donvidia ${libdir}/libnvidia-opencl.so ${NV_SOVER}
donvidia ${libdir}/libnvidia-compiler.so ${NV_SOVER}
donvidia ${libdir}/libOpenCL.so 1.0.0 ${CL_ROOT}
fi
The OpenCL issue also breaks boinc. Fixed in 304.37-r1. (In reply to comment #6) > Fixed in 304.37-r1. Install fails on amd64: >>> Install nvidia-drivers-304.37-r1 into /var/tmp/portage/x11-drivers/nvidia-drivers-304.37-r1/image/ category x11-drivers * Installing nvidia module !!! dolib: /var/tmp/portage/x11-drivers/nvidia-drivers-304.37-r1/work//32/libnvidia-opencl.so.304.37 does not exist * ERROR: x11-drivers/nvidia-drivers-304.37-r1 failed (install phase): * dolib failed |