all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Federico Beffa <beffa@ieee.org>
To: Eric Bavier <ericbavier@gmail.com>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: forcing local build from a package definition
Date: Sat, 25 Oct 2014 08:23:30 +0200	[thread overview]
Message-ID: <CAKrPhPMZTvCcTu4Tnu2VBALnOzmry7xQ-o5=H_r73zgvyjzLBA@mail.gmail.com> (raw)
In-Reply-To: <87ppdhxpl7.fsf@gmail.com>

On Fri, Oct 24, 2014 at 8:57 PM, Eric Bavier <ericbavier@gmail.com> wrote:
> ATLAS frequently pulls its tuning configuration information from a table
> of known values at configuration time.  I think there is also a way to
> tell it which architecture it should be built for.

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.

To avoid this type of problem you may specify the simplest type of CPU
that you want to support at configure time (and this is the approach
of most distributions which are only delivering binary). However, if
you then install the "low" spec generic library on your brand new CPU
with 8 cores it will perform poorly.

If we force the library to be built on the machine on which it will be
used, then everyone will get the most out of the library.  That is the
reason for asking if there is a way to force a local build from within
a package definition.

Hope this better explains the reason for my question.
Regards,
Fede

  parent reply	other threads:[~2014-10-25  6:23 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 [this message]
2014-10-25 22:25     ` Ludovic Courtès
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKrPhPMZTvCcTu4Tnu2VBALnOzmry7xQ-o5=H_r73zgvyjzLBA@mail.gmail.com' \
    --to=beffa@ieee.org \
    --cc=ericbavier@gmail.com \
    --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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.