Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403495 - eselect-opencl required for CUDA
Summary: eselect-opencl required for CUDA
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 23:36 UTC by Michal Januszewski (RETIRED)
Modified: 2012-02-15 09:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2012-02-13 23:36:52 UTC
x11-drivers/nvidia-drivers-290.10-r1 installs libcuda.so into ${CL_ROOT} and an explicit 'eselect opencl set nvidia' call is necessary to make CUDA usable.  This is weird, as OpenCL and CUDA, while similar, are two different, independent APIs.  Also, it is presently very unlikely that we will get CUDA implementations other than the one from NVIDIA.

What's the reason for coupling OpenCL and CUDA in this way?  Can't libcuda.so go into /usr/lib*, and the opencl stuff in ${CL_ROOT}?
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-15 09:54:48 UTC
(In reply to comment #0)
> x11-drivers/nvidia-drivers-290.10-r1 installs libcuda.so into ${CL_ROOT} and an
> explicit 'eselect opencl set nvidia' call is necessary to make CUDA usable. 
> This is weird, as OpenCL and CUDA, while similar, are two different,
> independent APIs.  Also, it is presently very unlikely that we will get CUDA
> implementations other than the one from NVIDIA.
> 
> What's the reason for coupling OpenCL and CUDA in this way?  Can't libcuda.so
> go into /usr/lib*, and the opencl stuff in ${CL_ROOT}?

Yeah, currently there's no reason for libcuda.so to go into CL_ROOT. I've reverted that change

+*nvidia-drivers-290.10-r2 (15 Feb 2012)
+*nvidia-drivers-295.20-r1 (15 Feb 2012)
+
+  15 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org>
+  +nvidia-drivers-290.10-r2.ebuild, +nvidia-drivers-295.20-r1.ebuild,
+  -nvidia-drivers-290.10-r1.ebuild, -nvidia-drivers-295.20.ebuild:
+  Move libcuda and libnvidia-compiler back to /usr/lib since they're not
+  creating any conflicts now. That will allow to use CUDA without explicit
+  eselect opencl. Fixes bug 403495 by Michal Januszewski <spock@gentoo.org>