From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: Switching from LInux to DU for Fortran
Date: 1998/12/20 [thread overview]
Message-ID: <367D05E7.C9C526B9@moene.indiv.nluug.nl> (raw)
In-Reply-To: 3D4E0E02941E69B4.CC5A8317D1D65D21.99407DD22F5A5872@library-proxy.airnews.net
dontspam_esci@fastlane.net wrote:
> Toon Moene <toon@moene.indiv.nluug.nl> wrote:
[ ... Slowdown of a factor of 10-15 between Digital
Fortran and g77 is rather extreme ... ]
> The code in question has 2 sqrts and 4 other divides in a tight loop
> w/ 7 multiplies and 7 adds. There are 5 operands per iteration.
> It's not surprising that compilers have trouble w/ it. The amazing
> part is how well DEC FORTRAN handles it.
Ah, that explains most of it: SQRT. The Alpha doesn't have a SQRT
instruction (until the 21264) so the compiler has to code a function
call. Digital Fortran is known to optimise loops with SQRT's by
unrolling them until they contain a multiple-of-4 number of SQRTs and
then calling a special run-time library to compute the 4 SQRTs "at
once". Furthermore, the standard SQRT in glibc is known to be rather
slow - there have been recent efforts to recode the math routines that
showed spectacular improvements in this area (Perhaps one of the authors
can chime in ?).
--
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
next prev parent reply other threads:[~1998-12-20 5:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-15 5:00 Switching from LInux to DU for Fortran G. Hugh SONG
1998-12-15 5:00 ` Eric Christy
1998-12-17 5:00 ` Switching from Linux " G. Hugh SONG
1998-12-17 5:00 ` Robert Harley
1998-12-17 5:00 ` Andrei A. Dergatchev
1998-12-17 5:00 ` Robert Harley
1998-12-17 5:00 ` Wai-Sun Chia
1998-12-17 5:00 ` Mike Iglesias
1998-12-19 5:00 ` Toon Moene
1998-12-15 5:00 ` Switching from LInux " James D. Freels
1998-12-16 5:00 ` Christian Hasse
1998-12-18 5:00 ` Stephen L. Scott
1998-12-17 5:00 ` Jack W. Crenshaw
1998-12-17 5:00 ` dontspam_esci
1998-12-19 5:00 ` Toon Moene
1998-12-20 5:00 ` dontspam_esci
1998-12-20 5:00 ` Toon Moene [this message]
1998-12-17 5:00 ` kasmjs
1998-12-17 5:00 ` G. Hugh SONG
1998-12-18 5:00 ` rsimpson
1998-12-18 5:00 ` lih-sin the
[not found] <7552ja$gg$2@news.kjist.ac.kr>
[not found] ` <36768633.88E7A7A9@rhea.umd.edu>
1998-12-16 5:00 ` G. Hugh SONG
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