[Mesa-dev] [PATCH] gallium: build ddebug, noop, rbug, trace as part of auxiliary

Emil Velikov emil.l.velikov at gmail.com
Wed Sep 6 17:45:39 UTC 2017


On 6 September 2017 at 18:13, Marek Olšák <maraeo at gmail.com> wrote:
> On Wed, Sep 6, 2017 at 2:08 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> On 6 September 2017 at 12:11, Marek Olšák <maraeo at gmail.com> wrote:
>>> On Wed, Sep 6, 2017 at 1:02 PM, Marek Olšák <maraeo at gmail.com> wrote:
>>>> On Wed, Sep 6, 2017 at 12:38 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>>>> On 4 September 2017 at 21:36, Marek Olšák <maraeo at gmail.com> wrote:
>>>>>> From: Marek Olšák <marek.olsak at amd.com>
>>>>>>
>>>>>> Building gallium is faster by 7.5 seconds on a 4core/8thread 3GHz CPU.
>>>>>> (gallium build time is reduced by 15% when building only radeonsi)
>>>>>>
>>>>> Some of this can be attributed to a couple libraries less to link.
>>>>> Speaking of which, did you switch to the gold linker, it should
>>>>> utilise the multiple cores/threads nicely.
>>>>
>>>> Sadly no.
>>>
>>> How do I switch to the gold linker?
>>>
>> There's multiple ways:
>>  - manually (or via binutils-config –linker ld.gold) set the default /usr/bin/ld
>> By default Arch has _hardlink_ to ld.bfd
>>  - export LD=ld.gold // haven't tried it
>>  - Add -fuse-ld=gold to the LDFLAGS (you may need a libtool patch [1])
>>
>> HTH
>> Emil
>>
>> [1] http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=f9970d99293faf908fdc153a653fa5781095fb7a
>
> Thanks. I used LDFLAGS and it does improve build times, but the linking
> still seems mostly single-threaded.
>
One can control the thread count at the different stages - see the
ld.gold --help.
You can also try lld it might be faster[1].

-Emil

[1] http://lld.llvm.org/#performance


More information about the mesa-dev mailing list