glibc 2.33's HWCAPS and GCC Function Multiversioning for performance

  • Done
  • quality assurance status badge
Details
3 participants
  • Léo Le Bouter
  • Ludovic Courtès
  • Ludovic Courtès
Owner
unassigned
Submitted by
Léo Le Bouter
Severity
normal
L
L
Léo Le Bouter wrote on 17 Mar 2021 19:59
(address . bug-guix@gnu.org)
f63bb1764b53c6b5c7e959281d522cd0c24bd8f3.camel@zaclys.net
Hello!

Please see:
-

This could help GNU Guix create binaries that include multiple code
paths for several CPU features in the same binary and selecting the
best at runtime when the binary is run.

It is the best fit for GNU Guix because it means we can still use
substitutes and profit from specialized optimizations without
parameterized packages or each user adding "-march=native" to CFLAGS
(breaking reproducibility).

Léo
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEFIvLi9gL+xax3g6RRaix6GvNEKYFAmBSUacACgkQRaix6GvN
EKYaXg//bjhmZ3RppzYgPDgzt6CCl8EczplWiOTancTvz+wqSA6C6+k/Qmi3Ntor
yiZjgpjbg5kPtsuav2BnVSUzy9XJnD4Ans0Y3/c3iwyJQloCp8Yf4xt9t30ayW2K
DySVIKY3luD7T78OXVyD+crelzrM7P70vuiOSlTld9LO6oTQ/zFEbLBZGHzTeH9M
UfMwH8t82PBddwnt6UkeqzcY2cleNKf8FyO7M2c7tZBBesVyMZWNaonJXfS7obtg
ZlL+ZJWQk4Dn342kK2+TXG6lQZaudD4MF5VNPLeAPtBie1qQQa658ALwrcL1nA8l
ZiNAe5pj4Wb8baRh+0EFtqVX4znNHbm+Xq5768x7Kfek8i6+BHgMufRyzGRJe761
5QYPahwGZlgPsIhSkmjXZNsknvASguKUZ2fmmXiInyC59inG4w29TQZFQ9wOe/cN
1RsQwB/H5QABjmTCCWutUe552Sf8BHUCCJHXvjg0yEsLMOv3Xo1jnF4D9o1DnFMu
GRkC6aFmk+8QTD8AAwA+hEV6d53Uo+52w1AhwWoL591xvdEvGzXSlz88atFVYiAS
jbMCRqZeqqTwXgfCJwuwMdNMph1d25D7TSxifGMVqGwsOS6ELgYvGrCcOEC2/0lA
FKcT8clsa7XsZ6zil5Qs/cq13xH77tznLEh75sMdUsOzuWHvF+Y=
=oLAa
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 18 Mar 2021 14:17
(name . Léo Le Bouter)(address . lle-bout@zaclys.net)(address . 47218@debbugs.gnu.org)
87lfakr47d.fsf@gnu.org
Hi Léo,

Léo Le Bouter <lle-bout@zaclys.net> skribis:

Toggle quote (15 lines)
> Please see:
> -
> https://www.gnu.org/software/libc/manual/html_mono/libc.html#Hardware-Capability-Tunables
> - https://www.phoronix.com/scan.php?page=news_item&px=glibc-hwcaps-RFC
> - https://gcc.gnu.org/onlinedocs/gcc/Function-Multiversioning.html
>
> This could help GNU Guix create binaries that include multiple code
> paths for several CPU features in the same binary and selecting the
> best at runtime when the binary is run.
>
> It is the best fit for GNU Guix because it means we can still use
> substitutes and profit from specialized optimizations without
> parameterized packages or each user adding "-march=native" to CFLAGS
> (breaking reproducibility).

For the record, we are well aware of these features and follow this very
closely in particular in the context of Guix-HPC:


It seems to me that this bug report is not actionable though. Unless
there are concrete steps you’d like to suggest, I propose to close this
issue.

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 29 Mar 2021 23:40
control message for bug #47218
(address . control@debbugs.gnu.org)
87ft0dljv0.fsf@gnu.org
tags 47218 notabug
close 47218
quit
?