unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: forcing local build from a package definition
Date: Sun, 26 Oct 2014 00:25:16 +0200	[thread overview]
Message-ID: <87r3xvpz1v.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPMZTvCcTu4Tnu2VBALnOzmry7xQ-o5=H_r73zgvyjzLBA@mail.gmail.com> (Federico Beffa's message of "Sat, 25 Oct 2014 08:23:30 +0200")

Federico Beffa <beffa@ieee.org> skribis:

> Let me try to better explain the problem: ATLAS needs to know the
> exact type of CPU on which it is running for best performance. This is
> because it tries to make best use of all available features:
> Say, you have a recent CPU with 8 cores and instructions set including
> SSE1 SSE2 SSE3.  If you specify this type of CPU, ATLAS will build a
> library with procedures which make use of 8 parallel threads and try
> to exploit all available instructions at best. However, the library
> will not run on an older CPU, say, with no SSE3. And perform poorly on
> a two cores CPU.

I think ATLAS should do like GMP, libc, etc.: build all the possible
variants, and then use IFUNC or a similar mechanism to select the right
variant at load time.

That doesn’t answer your initial question, though.  For now, I think
it’s OK to let it do its configure-time tuning and add a statement in
the description about substitutes, unless other packages depend on it
(in the former case, people would be installing it explicitly, so they
would most likely know what they’re doing.)

WDYT?

Thanks,
Ludo’.

  reply	other threads:[~2014-10-25 22:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 16:10 forcing local build from a package definition Federico Beffa
2014-10-24 18:57 ` Eric Bavier
2014-10-24 21:41   ` Federico Beffa
2014-10-25  6:23   ` Federico Beffa
2014-10-25 22:25     ` Ludovic Courtès [this message]
2014-10-26  8:34       ` Federico Beffa
2014-10-26 13:59         ` Ludovic Courtès
2014-10-27 20:28           ` Federico Beffa

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=87r3xvpz1v.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    /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).