Trying to install dev-util/nvidia-cuda-sdk with opencl USE flag, which I've set globally. Portage keeps pulling =x11-drivers/ati-drivers-15.12-r1 into the build tree. When I masked out x11-drivers/ati-drivers, I see The following mask changes are necessary to proceed: (see "package.unmask" in the portage(5) man page for more details) # required by sys-apps/hwloc-1.11.2::gentoo[opencl] # required by sys-cluster/openmpi-1.10.3-r2::science # required by virtual/mpi-2.0-r4::gentoo # required by dev-util/nvidia-cuda-sdk-8.0.27::science # required by dev-util/nvidia-cuda-sdk (argument) # /etc/portage/package.mask/ati-drivers: =x11-drivers/ati-drivers-15.12-r1 ?? There is no ATI card in the system.
So the culprit seems to be sys-apps/hwloc which wants x11-drivers/ati-drivers hard. That's a bug IMHO. When trying to emerge hwloc only, all sort of weird stuff happens # emerge -a sys-apps/hwloc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-process/numactl-2.0.11 ABI_X86="32 (64) (-x32)" [ebuild UD ] x11-base/xorg-server-1.17.4 [1.18.4] USE="nptl%*" [ebuild N #] x11-drivers/ati-drivers-15.12-r1 USE="modules qt4 static-libs -debug -gdm-hack -pax_kernel" ABI_X86="32 (64)" [ebuild N ] sys-apps/hwloc-1.11.2 USE="X cairo cuda numa opencl pci static-libs svg xml -debug -gl -plugins" ABI_X86="32 (64) (-x32)" Pulling in ati-drivers, which try to downgrade xorg-server...
The ebuild has a comment: > # TODO opencl only works with AMD so no virtual So, it would appear that this is intended at the moment. Cluster team will confirm whether there has been a change in the state of things for this package.
So dev-util/nvidia-cuda-sdk is infunctional? I have a Nvidia GPU and want to use that SDK. You're telling me I have to install the ATI drivers for nonexistant hardware? * dev-util/nvidia-cuda-sdk Available versions: 6.5.14^t (~)7.5.18^t (~)8.0.27^ft[1] {+cuda debug +doc +examples opencl} Homepage: https://developer.nvidia.com/cuda-downloads Description: NVIDIA CUDA Software Development Kit
https://www.open-mpi.org/projects/hwloc/doc/v1.11.4/ "The hwloc core may also benefit from the following development packages:" ... "the AMD OpenCL implementation for OpenCL device discovery." " the NVIDIA CUDA Toolkit for CUDA device discovery. " I don't have the hardware to test either, but that suggests to me that the comment in the ebuild is correct. Also, this has come up before: https://bugs.gentoo.org/show_bug.cgi?id=564820 *** This bug has been marked as a duplicate of bug 564820 ***