From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: Why the CPQ AlphaServer DS20 Flies on FP (was Re: HP PA-8500 fp performance: Ugh!)
Date: 1999/01/18 [thread overview]
Message-ID: <36A3A45D.AEE698D8@moene.indiv.nluug.nl> (raw)
In-Reply-To: 36A36D05.6DBBDA23@rhea.umd.edu
Jeffrey J. Potoff wrote:
>
> Toon Moene wrote:
> > Although I agree [...] in principle, I get really uneasy when just
> > adding a set of flags to a compile statement one can get a twofold
> > increase in performance (this happens on some of the tests - turb3d, and
> > in a lesser way - su2cor).
> >
> > This is not something I see in practice.
> We see it all the time. It's not uncommon for our fortran codes to gain
> a 2x performance boost when going from -O to -O5 optimization under the DEC
> Fortran 90 compiler. On certain codes
> "-speculate_all" will yield another
> 20% and on others it gives no improvement. It seems a bit silly to spend
> days or weeks coding up a problem and then use base optimization levels,
> especially if this is a code that is to be run for hundreds of CPU hours.
Oh yeah, if that's the case, surely you should do that. I couldn't find
a significant difference (i.e. more than the timing difference from run
to run with our code) between using -O (which really is -O4) and -O5
using DEC Fortran (77) under DEC Unix.
I think Patrick McGehearty hits the bull's eye:
> It may be the codes that Toon uses are already well written to
> be relatively easy for the compiler to generate good code. In my role
> as compiler performance analyst, I regularly see codes where the flags
> chosen can vary application performance by factors of two or more.
It's probably not so much that the code is written well, as well that
our code has rather large inner loops, which give most compilers ample
opportunity to optimize register usage, scheduling of code and what not,
without having to go to extremes like "software pipelining",
"prefetching" and such. Furthermore, we hardly use transcendentals, so
Digital's clever 4-sqrts-at-a-time trick gets lost in the noise for our
code; for others this might easily mean a factor of three in speed.
Even simple measures like unrolling do not buy us much [for the few
loops for which it would be beneficial].
HTH,
-
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com
prev parent reply other threads:[~1999-01-18 5:00 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3695FE68.B587EC5F@strategypartners.com>
[not found] ` <x667aauvbu.fsf@tmbbwmt.bbn.hp.com>
1999-01-14 5:00 ` Why the CPQ AlphaServer DS20 Flies on FP (was Re: HP PA-8500 fp performance: Ugh!) Terry C. Shannon
1999-01-14 5:00 ` John Henning
1999-01-14 5:00 ` We need a successor to the 8400 TL (was: Why the DS20 ...) Henrik Klagges
1999-01-14 5:00 ` Terry C. Shannon
1999-01-16 5:00 ` Steve Thompson
1999-01-17 5:00 ` Terry C. Shannon
1999-01-17 5:00 ` Bob Kaplow
1999-01-17 5:00 ` Steve Thompson
1999-01-18 5:00 ` 8400 TL config tips (was: We need; was: Why the DS20) John Henning
1999-01-14 5:00 ` We need a successor to the 8400 TL (was: Why the DS20 ...) Glenn C. Everhart
1999-01-15 5:00 ` John McCalpin
1999-01-15 5:00 ` Aaron Spink
1999-01-15 5:00 ` John McCalpin
1999-01-15 5:00 ` John Henning
1999-01-15 5:00 ` Greg Lindahl
1999-01-15 5:00 ` John McCalpin
1999-01-16 5:00 ` Greg Pfister
1999-01-17 5:00 ` John McCalpin
1999-01-15 5:00 ` Aaron Spink
1999-01-16 5:00 ` John McCalpin
1999-01-17 5:00 ` Greg Pfister
1999-01-18 5:00 ` John McCalpin
1999-01-18 5:00 ` Aaron Spink
1999-01-19 5:00 ` Rob Young
1999-01-19 5:00 ` Del Cecchi
1999-01-20 5:00 ` Aaron Spink
1999-01-17 5:00 ` jeffreyb
1999-01-19 5:00 ` Chris Morgan
1999-01-20 5:00 ` John McCalpin
1999-01-14 5:00 ` Why the CPQ AlphaServer DS20 Flies on FP (was Re: HP PA-8500 fp performance: Ugh!) Toon Moene
1999-01-15 5:00 ` Greg Lindahl
1999-01-15 5:00 ` Terry C. Shannon
1999-01-15 5:00 ` John Henning
1999-01-15 5:00 ` H.W. Stockman
1999-01-16 5:00 ` John Henning
1999-01-16 5:00 ` Toon Moene
1999-01-17 5:00 ` Patrick F. McGehearty
1999-01-18 5:00 ` Jeffrey J. Potoff
1999-01-18 5:00 ` Toon Moene [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox