From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: build system option to allow CPU optimizations?
Date: Mon, 20 Dec 2021 18:40:56 +0100 [thread overview]
Message-ID: <875yrjgonr.fsf@gnu.org> (raw)
In-Reply-To: <87fsrgnnoa.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 28 Nov 2021 19:20:42 +0100")
Hi,
Ricardo Wurmus <rekado@elephly.net> skribis:
> Ludovic Courtès <ludovic.courtes@inria.fr> writes:
[...]
> It may very well be the wrong approach in principle, but I also think
> that it’s a neat escape hatch for specific use cases. Separating
> reproducibility patching makes the package transformation mechanism
> more powerful and appealing. Much like respecting TESTS? makes it
> easy for users of modified packages to bypass a failing test suite,
> making patching of Makefiles to remove CPU tuning conditional would
> make for much less complex custom package definitions.
>
>> I found one case though where this is not possible: C++ header-only
>> libraries such as Eigen contain hand-optimized vectorized routines,
>> selected at build time, but we end up compiling Eigen users as the
>> x86_64/AArch64 baseline, which is a waste. (If you do know of other
>> problematic cases, I’m interested in taking a look!)
>>
>> My solution to that is “package multi-versioning” via a
>> transformation
>> option. Hopefully I’ll submit preliminary patches within a week or
>> so!
>
> Oh, exciting!
I forgot to mention it here, but it’s available for testing and probably
even ready to merge:
https://issues.guix.gnu.org/52283
I think it makes an option to dismiss ‘-march’ removal unnecessary; or,
put differently, it achieves the same.
I’m interested in seeing which packages people would mark as “tunable”
and what performance gains it gives!
Thanks,
Ludo’.
next prev parent reply other threads:[~2021-12-20 18:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 12:10 build system option to allow CPU optimizations? Ricardo Wurmus
2021-11-26 0:07 ` zimoun
2021-11-28 17:36 ` Ludovic Courtès
2021-11-28 18:20 ` Ricardo Wurmus
2021-12-20 17:40 ` Ludovic Courtès [this message]
2021-12-14 3:36 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yrjgonr.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).