From: mbkennel@yahoo.com (Matt Kennel)
Subject: Re: Redhat/Alpha computational performance????
Date: 1998/03/09 [thread overview]
Message-ID: <slrn6g8hta.sqa.mbkennel@lyapunov.ucsd.edu> (raw)
In-Reply-To: 6dhvm4$a4u$1@news.utrecht.NL.net
On 3 Mar 1998 22:19:48 GMT, Toon Moene <toon@moene.indiv.nluug.nl> wrote:
:mbkennel@yahoo.com (Matt Kennel) wrote:
:
:[ I thought of answering this one instead of the reply to my own question
: about your code (much more productive :-) ]
:
:> I tried a variety of different programs. Apparently the standard functions
:> are so bad that they became the bottleneck in all of them. I profiled a
:> couple of them.
:>
:> I don't know what SPECfp programs do, but it's impossible to do optical
:> physics without exponentials, sine and cosine (over both R and C).
:
:You bet standard functions are not a large part (performance wise) of SPECfp
:programs, because that would be in conflict with the requirement that those
:programs "don't spend significant time in library routines" - a requirement
:that's not surprising if you take into account what SPECfp is trying to
:measure.
OK, I'll bite.
What is SPECfp trying to measure by virtue of banning benchmarks which
spend time in library routines? It sort of seems analogous to banning
benchmarks run on computers with memory caching turned on. Certainly it
introduces a complexity, but the complexity is really there in people's
use.
I'll put forth the argument that the math libraries for standard functions
(exp, sin, cos, log & complex versions of such) really *are* special. The
concepts they represent are timeless and will be essential to mathematical
computation as long as our species stays alive.
If SPECfp ignores this, the benchmarks are doing a disservice to the
community, and apparently leading computer designers into choices--often
very expensive to reverse--not appropriate for some large classes of
mathematical users.
:This would at least forego the cost of making a subroutine call.
:
:OTOH, if usage of exp, sin and cos is so heavy in your program, why don't you
:use lookup tables; you'll bet we (using a rotated lat-lon grid for limited
:area weather forecasting) do not want to invoke lots of sin and cos routines,
:whereas for the coordinate transformations between regular and rotated
:lat-lon, one *has* to.
Maybe, but we're using double precision complex.
Unfortunately I suspect we need fairly decent accuracy since we're looking
at subtle dynamical effects which accumulate over hundreds of thousands of
iterations (each iteration composed of 2000 integration timesteps).
Inaccuracies or weirdities which transmit any excess high-frequency 'junk'
into the system will be preserved and amplified. Indeed those are the
effects we really care about---nonlinearities on the nondimensional scale of
1 part in 10^9 or 10^10 matter to us.
e.g. if sin^2 + cos^2 isn't quite 1 that means that false energy is being
inserted into or dissipated from the system improperly.
--
* Matthew B. Kennel/Institute for Nonlinear Science, UCSD -
* "People who send spam to Emperor Cartagia... vanish! _They say_ that
* there's a room where he has their heads, lined up in a row on a desk...
* _They say_ that late at night, he goes there, and talks to them... _they
*- say_ he asks them, 'Now tell me again, how _do_ you make money fast?'"
next prev parent reply other threads:[~1998-03-09 5:00 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <slrn6fc0t1.3en.mbkennel@lyapunov.ucsd.edu>
1998-02-27 5:00 ` Redhat/Alpha computational performance???? Greg Lindahl
1998-03-03 5:00 ` Matt Kennel
1998-03-03 5:00 ` Toon Moene
1998-03-09 5:00 ` Matt Kennel [this message]
1998-03-11 5:00 ` Greg Lindahl
1998-03-11 5:00 ` Toon Moene
1998-03-11 5:00 ` Matt Kennel
1998-03-03 5:00 ` H.W. Stockman
1998-03-06 5:00 ` Richard Henderson
1998-03-03 5:00 ` Greg Lindahl
1998-03-03 5:00 ` Michal Jaegermann
1998-03-04 5:00 ` Matt Kennel
1998-03-04 5:00 ` Greg Lindahl
1998-03-05 5:00 ` Matt Kennel
1998-03-06 5:00 ` Michal Jaegermann
1998-03-08 5:00 ` H.W. Stockman
1998-03-08 5:00 ` Greg Lindahl
1998-03-05 5:00 ` Toon Moene
1998-03-05 5:00 ` Greg Lindahl
1998-03-06 5:00 ` Toon Moene
1998-03-07 5:00 ` Greg Lindahl
1998-03-07 5:00 ` Greg Lindahl
1998-03-06 5:00 ` Richard Henderson
[not found] <6d3tt1$2vs$1@mrnews.mro.dec.com>
1998-02-26 5:00 ` Greg Lindahl
1998-02-24 5:00 Matt Kennel
1998-02-24 5:00 ` Toon Moene
1998-02-24 5:00 ` Greg Lindahl
[not found] ` <6cved5$4rh$1@mrnews.mro.dec.com>
1998-02-25 5:00 ` Matt Kennel
1998-02-25 5:00 ` Matt Kennel
1998-02-25 5:00 ` David.Mosberger
1998-02-26 5:00 ` Toon Moene
1998-02-26 5:00 ` H.W. Stockman
1998-02-27 5:00 ` Toon Moene
1998-02-27 5:00 ` Greg Lindahl
1998-02-27 5:00 ` Toon Moene
1998-02-27 5:00 ` H.W. Stockman
1998-02-28 5:00 ` Andi Kleen
1998-03-03 5:00 ` Ulrich Ruede
1998-02-27 5:00 ` Greg Lindahl
1998-03-03 5:00 ` Matt Kennel
1998-03-03 5:00 ` Greg Lindahl
1998-02-26 5:00 ` Mika Kortelainen
1998-02-28 5:00 ` Lupo LeBoucher
1998-03-01 5:00 ` Michal Jaegermann
1998-03-02 5:00 ` Greg Lindahl
1998-03-05 5:00 ` Lupo LeBoucher
1998-02-25 5:00 ` Peter Mardahl
1998-02-26 5:00 ` Greg Lindahl
1998-02-26 5:00 ` Greg Lindahl
1998-02-26 5:00 ` Dan Bethe
1998-02-27 5:00 ` Toon Moene
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