Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660550 - Mesa with OpenCL only support Radeon in USEs
Summary: Mesa with OpenCL only support Radeon in USEs
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-06 19:24 UTC by Lagu
Modified: 2018-07-15 20:59 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info,5.81 KB, text/plain)
2018-07-06 19:25 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2018-07-06 19:24:49 UTC
Hi, i found this, i was trying to enable OpenCL in my system, but mesa is configured to only accept Radeon Cards, i have an intel and nvidia (dedicated), here is the log:


!!! Problem resolving dependencies for media-libs/mesa
... done!

!!! The ebuild selected to satisfy "mesa" has unmet requirements.
- media-libs/mesa-18.0.5::gentoo USE="classic dri3 egl gallium gbm gles2 llvm nptl opencl vaapi vdpau wayland -bindist -d3d9 -debug -gles1 -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -valgrind -vulkan -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="i915 i965 intel nouveau (-freedreno) (-imx) -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -virgl (-vivante) -vmware"

  The following REQUIRED_USE flag constraints are unsatisfied:
    opencl? ( any-of ( video_cards_r600 video_cards_radeonsi ) )

  The above constraints are a subset of the following complete expression:
    d3d9? ( dri3 gallium ) llvm? ( gallium ) opencl? ( gallium llvm any-of ( video_cards_r600 video_cards_radeonsi ) ) openmax? ( gallium ) gles1? ( egl ) gles2? ( egl ) vaapi? ( gallium ) vdpau? ( gallium ) vulkan? ( any-of ( video_cards_i965 video_cards_radeonsi ) video_cards_radeonsi? ( llvm ) ) wayland? ( egl gbm ) xa? ( gallium ) video_cards_freedreno? ( gallium ) video_cards_intel? ( classic ) video_cards_i915? ( any-of ( classic gallium ) ) video_cards_i965? ( classic ) video_cards_imx? ( gallium video_cards_vivante ) video_cards_nouveau? ( any-of ( classic gallium ) ) video_cards_radeon? ( any-of ( classic gallium ) gallium? ( x86? ( llvm ) amd64? ( llvm ) ) ) video_cards_r100? ( classic ) video_cards_r200? ( classic ) video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) ) video_cards_r600? ( gallium ) video_cards_radeonsi? ( gallium llvm ) video_cards_vc4? ( gallium ) video_cards_virgl? ( gallium ) video_cards_vivante? ( gallium gbm ) video_cards_vmware? ( gallium )


Now i'm reinstalling my system, i never had this problem, opencl should works with nvidia and intel.

I don't have any radeon cards, so i should not enable that USEs.

Thx.
Comment 1 Lagu 2018-07-06 19:25:31 UTC
Created attachment 538648 [details]
emerge --info
Comment 2 Andrei Slavoiu 2018-07-07 22:21:51 UTC
Well, mesa's Clover (the OpenCL implementation) only supports AMD cards. If you don't have an AMD card just add "media-libs/mesa -opencl" to /etc/portage/package.use. Making the opencl use flag of mesa do nothing without an AMD card would cause bigger problems and be even more confusing for users. Like media-libs/mesa[opencl] would satisfy the requirements of virtual/opencl but not actually provide an implementation.
Comment 3 Lagu 2018-07-10 13:18:11 UTC
Hi, mm, maybe would be great some part of the wiki spliting right opencl/cuda/opengl, just to avoid this.

Because a question can be, opencl will support other GPU in future?

Thx.
Comment 4 Jonas Stein gentoo-dev 2018-07-15 20:59:43 UTC
Every user may edit the wiki after registration.