PAPI LTO enablement?

5 views
Skip to first unread message

William Cohen

unread,
Nov 3, 2021, 11:30:20 AM11/3/21
to perfap...@icl.utk.edu
Hi,

Fedora 33 and newer compile packages with LTO (Link Time Optimization) enabled by default (https://fedoraproject.org/wiki/LTOByDefault). The main advantage of LTO is that generated code can be smaller and more efficient (https://hubicka.blogspot.com/2019/05/gcc-9-link-time-and-inter-procedural.html). A triage was done and packages that had issues had LTO disabled. PAPI was one of the packages that had issues with LTO being enabled. This summer I tracked down the issue that prevented PAPI from being compiled with LTO enabled to an issue with assembly test code being duplicated and the multiple labels with the same name causing an error. There is a pull request with a patch for this on:

https://bitbucket.org/icl/papi/pull-requests/197

Would it be possible to get this patch into PAPI so it can be compiled with LTO enabled?

Thanks,

-Will

Giuseppe Congiu

unread,
Aug 14, 2023, 9:49:07 AM8/14/23
to perfapi-devel, wcohen
Hi Will,

Could you push the branch to the new GitHub repository for PAPI?

Thank you,
Giuseppe

Giuseppe Congiu

unread,
Aug 14, 2023, 9:49:58 AM8/14/23
to perfapi-devel, Giuseppe Congiu, wcohen
Nevermind, I don't understand why but I saw this as a recent email.

William Cohen

unread,
Aug 14, 2023, 9:53:45 AM8/14/23
to Giuseppe Congiu, perfapi-devel, wco...@redhat.com
On 8/14/23 09:49, Giuseppe Congiu wrote:
> Nevermind, I don't understand why but I saw this as a recent email.

Yes, the patch has already been merged into pap. I wasn't sure if there was some other reason you wanted on git hub for historical reasons. But I am fine if don't have to move it to my github tree.

-Will
>
> On Monday, August 14, 2023 at 3:49:07 PM UTC+2 Giuseppe Congiu wrote:
>
> Hi Will,
>
> Could you push the branch to the new GitHub repository for PAPI?
>
> Thank you,
> Giuseppe
>
> On Wednesday, November 3, 2021 at 4:30:20 PM UTC+1 wcohen wrote:
>
> Hi,
>
> Fedora 33 and newer compile packages with LTO (Link Time Optimization) enabled by default (https://fedoraproject.org/wiki/LTOByDefault <https://fedoraproject.org/wiki/LTOByDefault>). The main advantage of LTO is that generated code can be smaller and more efficient (https://hubicka.blogspot.com/2019/05/gcc-9-link-time-and-inter-procedural.html <https://hubicka.blogspot.com/2019/05/gcc-9-link-time-and-inter-procedural.html>). A triage was done and packages that had issues had LTO disabled. PAPI was one of the packages that had issues with LTO being enabled. This summer I tracked down the issue that prevented PAPI from being compiled with LTO enabled to an issue with assembly test code being duplicated and the multiple labels with the same name causing an error. There is a pull request with a patch for this on:
>
> https://bitbucket.org/icl/papi/pull-requests/197 <https://bitbucket.org/icl/papi/pull-requests/197>
Reply all
Reply to author
Forward
0 new messages