From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: Fast math library for Alpha/Linux (was Re: Alpha vs. P2?)
Date: 1998/07/31 [thread overview]
Message-ID: <6ps941$2au$2@newnews.nl.uu.net> (raw)
In-Reply-To: 6pru3p$nju$1@eunhasu.kjist.ac.kr
ghsong@PlSNoSpamkjist.ac.kr (G. Hugh SONG) wrote:
> I have a question on this libm thing. I thought that this libm library the
most
> critical thing for floating-point calculation. But not many people mention
> about this. We are all lamenting the lack of a decent FORTRAN compiler.
> Which is the most critical part, the compiler or libm?
[I'll try to answer this from the egcs (http://egcs.cygnus.com) perspective]
This is a good question and - unfortunately - there is no simple answer to
it. It all depends on what computations your main application is doing.
A lot a transcendentals (sin, cos, exp, log, etc ...) were a problem in the
past on Alpha's. The standard routines in (g)libc aren't that fast; enter
Joachim Wesner's work which should render this part a lot better.
For the ordinary "traverse arrays doing +,-,*,/" there's still a short-coming
(on all architectures egcs supports) that's in the process of being repaired,
namely the fact that neighboring array elements get assigned separate
registers:
do i = 2, n
b(i) = a(i - 1) + a(i)
enddo
one would like to have the a(i-1) addressed as Rx(-4) (assuming Rx holds the
current pointer to a(i)).
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam
next prev parent reply other threads:[~1998-07-31 4:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-30 4:00 Alpha vs. P2? Christian Stieber
1998-07-30 4:00 ` Matt Nelson
1998-07-30 4:00 ` Eric Christy
1998-07-31 4:00 ` Fast math library for Alpha/Linux (was Re: Alpha vs. P2?) G. Hugh SONG
1998-07-31 4:00 ` Matt Nelson
1998-07-31 4:00 ` Joachim Wesner
1998-07-31 4:00 ` Matt Nelson
1998-07-31 4:00 ` Joachim Wesner
1998-08-01 4:00 ` Greg Lindahl
1998-07-31 4:00 ` Toon Moene
1998-07-31 4:00 ` Greg Lindahl
1998-07-31 4:00 ` Joachim Wesner
1998-07-31 4:00 ` Toon Moene [this message]
1998-07-30 4:00 ` Alpha vs. P2? Jeff Lessem
1998-08-03 4:00 ` S S Sturrock
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