On 6 September 2017 at 18:13, Marek Olšák <mar...@gmail.com> wrote: > On Wed, Sep 6, 2017 at 2:08 PM, Emil Velikov <emil.l.veli...@gmail.com> wrote: >> On 6 September 2017 at 12:11, Marek Olšák <mar...@gmail.com> wrote: >>> On Wed, Sep 6, 2017 at 1:02 PM, Marek Olšák <mar...@gmail.com> wrote: >>>> On Wed, Sep 6, 2017 at 12:38 PM, Emil Velikov <emil.l.veli...@gmail.com> >>>> wrote: >>>>> On 4 September 2017 at 21:36, Marek Olšák <mar...@gmail.com> wrote: >>>>>> From: Marek Olšák <marek.ol...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev