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.
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.
*** This bug has been marked as a duplicate of bug 557036 ***
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.
Also see https://bugs.gentoo.org/show_bug.cgi?id=521734
It looks like this was fixed in https://github.com/gentoo/gentoo/commit/cb730d07e4e9c2f96b865de36428eefa091723cb ? Can anyone confirm?
Yep, it's fixed.