Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557138 - app-eselect/eselect-opencl with >=x11-drivers/nvidia-drivers-350 should support OpenCL 1.2 but eselect-opencl still provides only 1.1 headers
Summary: app-eselect/eselect-opencl with >=x11-drivers/nvidia-drivers-350 should suppo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-08-09 14:57 UTC by Timo Rothenpieler
Modified: 2018-04-23 10:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opencl-1.2-headers.patch (opencl-1.2-headers.patch,773 bytes, patch)
2015-08-09 15:52 UTC, Timo Rothenpieler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Rothenpieler 2015-08-09 14:57:33 UTC
Starting with version 350, the provided OpenCL library supports OpenCL 1.2, but the headers eselect-opencl creates symlinks to are still for OpenCL 1.1.

As a workaround, one can create a symlink from /usr/lib/OpenCL/vendors/nvidia/include/CL to ../../../global/include/CL-1.2
This also seems like a viable solution for the nvidia-drivers ebuild, as it doesn't provide headers on its own.
The OpenCL 1.2 headers are present starting with app-eselect/eselect-opencl-1.1.0-r2, which the nvidia-driver would have to depend on in that case.
Comment 1 Timo Rothenpieler 2015-08-09 15:52:42 UTC
Created attachment 408634 [details, diff]
opencl-1.2-headers.patch

This patch against nvidia-drivers-355.06 creates a symlink to the CL-1.2 headers, so eselect-opencl works as expected.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2015-08-13 00:54:43 UTC

*** This bug has been marked as a duplicate of bug 557036 ***
Comment 3 Timo Rothenpieler 2015-08-13 08:17:18 UTC
This is a diffrent issue.
The other bug, which is fixed now, is about the OpenCL library beeing installed to the wrong location.
This one is about the headers, which are currently still linked to the OpenCL 1.1 ones by eselect-opencl, although the >=350 drivers support 1.2.
Comment 4 om3i 2015-08-16 06:44:40 UTC
Also see https://bugs.gentoo.org/show_bug.cgi?id=521734
Comment 5 Craig Andrews gentoo-dev 2018-03-27 01:40:05 UTC
It looks like this was fixed in https://github.com/gentoo/gentoo/commit/cb730d07e4e9c2f96b865de36428eefa091723cb ? Can anyone confirm?
Comment 6 Timo Rothenpieler 2018-04-23 10:50:48 UTC
Yep, it's fixed.