Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Mart Raudsepp <leio@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New USE_EXPAND: LLVM_TARGETS
Date: Mon, 26 Sep 2016 06:18:47
Message-Id: 20160926081827.02d60501.mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] New USE_EXPAND: LLVM_TARGETS by Mart Raudsepp
1 On Mon, 26 Sep 2016 00:42:11 +0300
2 Mart Raudsepp <leio@g.o> wrote:
3
4 > Ühel kenal päeval, P, 25.09.2016 kell 23:08, kirjutas Michał Górny:
5 > > I'd like to introduce a new USE_EXPAND for LLVM & clang. It'd be
6 > > named
7 > > LLVM_TARGETS, and it's going to replace the current solution based on
8 > > USE=multitarget & VIDEO_CARDS=radeon.
9 > >
10 > > - VIDEO_CARDS=radeon enabled additional R600 target,
11 >
12 > No. It enables AMDGPU target these days, which is for the modern stuff
13 > and very much needed by them.
14 > r600 stuff was in the llvm 3.3-3.6 era, which was used by old
15 > experimental mesa[r600-llvm-compiler] as an alternative shader compiler
16 > for r600 instead of builtin mesa stuff. This work has been ditched long
17 > ago afaik.
18 > Instead now VIDEO_CARDS=radeon is required on llvm for radeonsi and
19 > later AMD GPUs for _ANY_ shader compiler support at all, plus other
20 > things (from it adding AMDGPU to llvm targets in current ebuild).
21
22 Yes, yes, I am old :-P. You are right, it's AMDGPU these days.
23
24 > > The new system will be applied to 3.9.0 and 9999 ebuilds. VIDEO_CARDS
25 > > flag will be removed completely because of no revdeps.
26 >
27 > People with radeonsi graphics set VIDEO_CARDS=radeon already, I'm a bit
28 > reserved about having to force them to set some LLVM_TARGETS=radeon or
29 > LLVM_TARGETS=amdgpu on top of that to satisfy some USE depends on
30 > mesa[video_cards_radeon].
31
32 How about nvidia users who seem to require NVPTX for libclc these days?
33 Do they set VIDEO_CARDS='nvidia nv nouveau ...'? The problem is that
34 this abuse of VIDEO_CARDS is never going to be 100% clear to users.
35
36 I guess we can enable GPU targets in desktop profiles by default to
37 save most of our users from the issues.
38
39 --
40 Best regards,
41 Michał Górny
42 <http://dev.gentoo.org/~mgorny/>

Replies

Subject Author
Re: [gentoo-dev] [RFC] New USE_EXPAND: LLVM_TARGETS "Michał Górny" <mgorny@g.o>