Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596544 - sys-apps/hwloc[opencl] depends on x11-drivers/ati-drivers instead of virtual/opencl
Summary: sys-apps/hwloc[opencl] depends on x11-drivers/ati-drivers instead of virtual/...
Status: RESOLVED DUPLICATE of bug 564820
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 11:55 UTC by PetaMem R&D
Modified: 2016-10-11 16:11 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 PetaMem R&D 2016-10-08 11:55:26 UTC
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.
Comment 1 PetaMem R&D 2016-10-08 12:04:27 UTC
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...
Comment 2 Adam Feldman gentoo-dev 2016-10-11 06:30:29 UTC
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.
Comment 3 PetaMem R&D 2016-10-11 10:52:52 UTC
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
Comment 4 Justin Bronder (RETIRED) gentoo-dev 2016-10-11 16:11:18 UTC
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 ***