From: "Vladimir G. Ivanovic" <vgivanovic@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] gcc 4.1 + CFLAGS
Date: Fri, 09 Jun 2006 10:11:28 -0700 [thread overview]
Message-ID: <1149873088.13266.20.camel@scarlatti.leonora.org> (raw)
In-Reply-To: <200606091536.45672.volker.armin.hemmann@tu-clausthal.de>
On Fri, 2006-06-09 at 15:36 +0200, Hemmann, Volker Armin wrote:
> > Haven't noticed any problems on my laptop or a workstation.
> >
>
> because they were filtered out.
>
> DO NEVER USE FFAST-MATH!
>
> Apps that can use it safely, usually set it in their makefile.
>
> Everything else is prone to break.
>
> And that is the reason, that almost all ebuilds have 'filter-flags'
> and 'strip-flags'.
>
> Again: NEVER USE IT.
>
> And: NEVER TELL ANYBODY TO USE IT.
If -ffast-math is filtered or stripped out, there is no harm in leaving
it in CFLAGS, right?
But, on my system, only 14 packages filter out -ffast-math: gnubg
postgresql pgcluster libpq zoom mpfr gmp octave openoffice gsl goffice
rrdtool xv gimp. None strip it out. So, the huge majority of the
packages on my system are compiled with -ffast-math, unless I've made a
mistake in grepping for "fast-math" in ebuilds that contain
"filter-flags".
Here are 4 other opinions about using -ffast-math.
http://forums.gentoo.org/viewtopic-t-10535.html
--fast-math can and does cause errors, but as I understand it
(can't remember where I read this) the errors it can create are
only single-byte errors. IOW, your answer to a FP
calculation /might/ be one least-signifigant digit off.
Unless you're doing important scientific calculations, you're
probably never going to notice /or/ care. I would expect that
any linux packages that would have a problem with this (ALSA, or
GSL and the like) probably tell you not to use it if they don't
like it.
http://gcc.gnu.org/ml/gcc/2004-03/msg01459.html
I've heard it argued that people who are serious about floating
point don't use -ffast-math. I consider myself serious, and
make a very nice living from selling software to solve
finite-difference Poison-Boltzmann electrostatic calculations on
regular grids, and molecular minimizations using quasi-newtonian
numerical optimizers. Toon does numerical weather forecasting,
and he seems happy with -ffast-math. Laurent performs large
scale Monte-Carlo simulations, and he also seems happy with it.
http://gcc.gnu.org/ml/gcc/2004-03/msg01511.html
For me, it's very simple: If -ffast-math leads to answers that are less
accurate (in the verification-against-observation-sense) or unphysical
(against theoretical limit analysis), then I'll inspect my Fortran code
and repair the formulation (either a single expression or the layout of
loop code) that is responsible for the mayhem.
Under no circumstances I will give up using -ffast-math.
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32035.pdf
-ffast-math is recommended by AMD.
These opinions seem to contradict your advice. Could you be more
specific about why -ffast-math should not be used?
--- Vladimir
--
Vladimir G. Ivanovic <vgivanovic@comcast.net>
--
gentoo-amd64@gentoo.org mailing list
next prev parent reply other threads:[~2006-06-09 17:25 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 3:59 [gentoo-amd64] gcc 4.1 + CFLAGS Fernando Boaglio
2006-06-09 4:46 ` brian
2006-06-09 5:47 ` Michael Weyershäuser
2006-06-09 11:19 ` Vladimir G. Ivanovic
2006-06-09 11:59 ` Michael Weyershäuser
2006-06-09 12:13 ` Vladimir G. Ivanovic
2006-06-09 12:45 ` Mike Arthur
2006-06-09 13:38 ` Hemmann, Volker Armin
2006-06-09 12:13 ` Ian McCulloch
2006-06-14 14:13 ` Paul de Vrieze
2006-06-09 13:36 ` Hemmann, Volker Armin
2006-06-09 17:11 ` Vladimir G. Ivanovic [this message]
2006-06-09 17:56 ` Bob Sanders
2006-06-09 20:22 ` Vladimir G. Ivanovic
2006-06-09 21:14 ` Barry.SCHWARTZ
2006-06-09 21:42 ` Vladimir G. Ivanovic
2006-06-09 22:28 ` Hemmann, Volker Armin
2006-06-14 14:30 ` Paul de Vrieze
2006-06-09 23:02 ` Barry.SCHWARTZ
2006-06-09 18:50 ` Hemmann, Volker Armin
2006-06-09 20:45 ` Vladimir G. Ivanovic
2006-06-09 22:32 ` Hemmann, Volker Armin
2006-06-14 14:43 ` Paul de Vrieze
2006-06-09 4:57 ` Michael Weyershäuser
2006-06-09 7:11 ` Adam James
2006-06-09 9:13 ` Simon Strandman
2006-06-09 9:53 ` Samir Mishra
2006-06-09 11:33 ` Kirby Walborn
2006-06-09 11:40 ` Simon Stelling
2006-06-09 12:01 ` Vladimir G. Ivanovic
2006-06-09 12:15 ` Simon Stelling
2006-06-09 13:21 ` Samir Mishra
2006-06-09 17:32 ` [gentoo-amd64] " Duncan
2006-06-09 18:57 ` Duncan
2006-06-10 21:09 ` Samir Mishra
2006-06-11 14:33 ` [gentoo-amd64] " Duncan
2006-06-11 16:11 ` Vladimir G. Ivanovic
2006-06-11 17:38 ` [gentoo-amd64] " Duncan
2006-06-11 18:09 ` Barry.SCHWARTZ
2006-06-10 21:14 ` [gentoo-amd64] " Samir Mishra
2006-06-09 13:40 ` [gentoo-amd64] " Hemmann, Volker Armin
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=1149873088.13266.20.camel@scarlatti.leonora.org \
--to=vgivanovic@comcast.net \
--cc=gentoo-amd64@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox