The opt build now uses link time optimization (LTO) and does not use
partial linking. On slower machines and/or machines with fewer cores (and
maybe less memory?) this seems to really slow things down, where on
machines with more cores, LTO linking happens to be parallel where normal
linking doesn't seem to be, and this and not having partial linking is
actually a good bit faster and significantly reduces the footprint of the
build directory.

If you see long link times and you didn't before, you can try disabling LTO
(--no-lto). That should bring the link times back down to be more in line
with older versions.

Gabe

On Sun, Apr 11, 2021 at 9:46 PM Majid Jalili via gem5-users <
[email protected]> wrote:

> Hi,
> Why does the recent version of gem5 takes very long on the last step when
> creating the gem5.opt? My 2-month old repo is just fine, but the new
> version takes a very long to finish link.
> I tried on three different machines with the different OS but no
> improvement.
>
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to