Summary: | dev-util/intel-ocl-sdk: libOpenCL.so uses incompatible SONAME without SOVERSION | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | Rick Farina (Zero_Chaos) <zerochaos> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | Keywords: | NeedPatch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://software.intel.com/en-us/forums/topic/277598 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dennis Schridde
2012-03-20 14:20:57 UTC
Latest version has exactly what you asked for, though I'm not sure this will fix the underlying problem. Please test Still does not work. Maybe the eselect module needs to be updated? # eselect opencl set amd # ll /usr/lib/libOpenCL.so* lrwxrwxrwx 1 root root 33 Oct 2 17:37 /usr/lib/libOpenCL.so -> OpenCL/vendors/amd/libOpenCL.so.1 lrwxrwxrwx 1 root root 33 Oct 2 17:37 /usr/lib/libOpenCL.so.1 -> OpenCL/vendors/amd/libOpenCL.so.1 # eselect opencl set intel # ll /usr/lib/libOpenCL.so* lrwxrwxrwx 1 root root 35 Oct 2 17:39 /usr/lib/libOpenCL.so -> OpenCL/vendors/intel/libOpenCL.so.1 # ll /usr/lib/OpenCL/vendors/intel/libOpenCL.so* lrwxrwxrwx 1 root root 14 Oct 2 17:08 /usr/lib/OpenCL/vendors/intel/libOpenCL.so -> libOpenCL.so.1 -rwxr-xr-x 1 root root 26744 Oct 2 17:07 /usr/lib/OpenCL/vendors/intel/libOpenCL.so.1 Found the issue. The eselect opencl module uses the SONAME to setup the symlinks, which is wrong for the intel implementation: # scanelf -S /usr/lib/OpenCL/vendors/*/libOpenCL.so.1 TYPE SONAME FILE ET_DYN libOpenCL.so.1 /usr/lib/OpenCL/vendors/amd/libOpenCL.so.1 ET_DYN libOpenCL.so /usr/lib/OpenCL/vendors/intel/libOpenCL.so.1 (In reply to comment #3) > Found the issue. The eselect opencl module uses the SONAME to setup the > symlinks, which is wrong for the intel implementation: > # scanelf -S /usr/lib/OpenCL/vendors/*/libOpenCL.so.1 > TYPE SONAME FILE > ET_DYN libOpenCL.so.1 /usr/lib/OpenCL/vendors/amd/libOpenCL.so.1 > ET_DYN libOpenCL.so /usr/lib/OpenCL/vendors/intel/libOpenCL.so.1 The question is will it work with the symlink, if soname is wrong? Do that link manually, if it helps I'll fix eselect-opencl (In reply to comment #4) > (In reply to comment #3) > > Found the issue. The eselect opencl module uses the SONAME to setup the > > symlinks, which is wrong for the intel implementation: > > # scanelf -S /usr/lib/OpenCL/vendors/*/libOpenCL.so.1 > > TYPE SONAME FILE > > ET_DYN libOpenCL.so.1 /usr/lib/OpenCL/vendors/amd/libOpenCL.so.1 > > ET_DYN libOpenCL.so /usr/lib/OpenCL/vendors/intel/libOpenCL.so.1 > The question is will it work with the symlink, if soname is wrong? > Do that link manually, if it helps I'll fix eselect-opencl This made cgminer start: ln -s OpenCL/vendors/intel/libOpenCL.so.1 /usr/lib/libOpenCL.so.1 It reports no usable GPUs, though: [2012-10-02 18:06:38] Error -1: Getting Device IDs (num) [2012-10-02 18:06:38] Error -1: Getting Device IDs (num) [2012-10-02 18:06:38] clDevicesNum returned error, no GPUs usable The reasons could be numerous. For starters I have neither an Intel CPU nor GPU. Anyway, I found a bugreport in their forum on this matter: http://software.intel.com/en-us/forums/topic/277598 please see if the new 4.4.0 in portage meets your needs. Hi! Version 4.4.0 not working. If i use 2.0.31360, i have OpenCl 1.1 I want to use 1.2, but after building (building - OK) I am using http://wiki.tiker.net/OpenCLHowTo to test opencl works At version 2.0.31360 artem_lin tools-master # ./print-devices platform 0: vendor 'Intel(R) Corporation' device 0: ' Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz' platform 1: vendor 'NVIDIA Corporation' device 0: 'GeForce GT 440' At version 4.4.0 artem_lin tools-master # ./print-devices platform 0: vendor 'NVIDIA Corporation' device 0: 'GeForce GT 440' Boinc also doesn't find Intel OpenCL P.S. Sorry for my English.... The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f557fd4bf15bb23073fdd7ec8e3e51ac7989a7 commit c4f557fd4bf15bb23073fdd7ec8e3e51ac7989a7 Author: Andrew Udvare <audvare@gmail.com> AuthorDate: 2022-11-15 03:54:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-11-21 08:08:00 +0000 dev-util/intel-ocl-sdk: add 18.1.0.015 Bug: https://bugs.gentoo.org/409015 Closes: https://bugs.gentoo.org/593414 Closes: https://bugs.gentoo.org/627546 Closes: https://bugs.gentoo.org/835868 Signed-off-by: Andrew Udvare <audvare@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-util/intel-ocl-sdk/Manifest | 1 + .../intel-ocl-sdk/intel-ocl-sdk-18.1.0.015.ebuild | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) |