Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test!
Date: 1999/07/01	[thread overview]
Message-ID: <377BB711.87AD7FCE@moene.indiv.nluug.nl> (raw)
In-Reply-To: 377A6E49.B91B16D9@nat.vu.nl

C.Simmendinger wrote:

> > > test-run:g77 -O3 -fexpensive-optimizations -fno-emulate-complex
> > > (egcs-1.1.1/cpml): 432s
> > > test-run: fort -O4 :  123 s

> > How about: -funroll-loops for egcs ?

> test-run:g77 -O3 -fexpensive-optimizations -fno-emulate-complex
> -funroll-loops (egcs-1.1.1/cpml): 420sHm, better, but still a mile off.
> BTW:The above result is by no means a general statement (!),
> i've seen egcs/g77 performing rather well too.

Normally, code that runs 3.5 faster with Compaq Fortran as opposed to
g77 has some feature in its hot spot that makes it immediately clear
where the speed difference comes from.

However, given that you use -fno-emulate-complex, I deduce:

1. Your code is complex-arithmetic-bound.

2. It is DOUBLE COMPLEX (on an Alpha egcs-1.1.2 would almost certainly
   fail with -fno-emulate-complex if your source contained single
   precision complex (gcc-2.95, the successor of egcs-1.1.2 will have
   -fno-emulate-complex as default, because we believe all the remaining
   problems with complex arithmetic in the common backend have been
   solved).

So, to make a stab at it:

1. Complex division, square root and abs are all computed via run-time
   library routines instead of by inline code.  gcc-2.95 will inline
   complex division.

2. You do not happen to have an expression like z ** 2. in your code ?
   (this is my favourite:  z ** 2. will be computed as exp(2.0*log(z)),
   whereas z ** 2 will be computed as z * z).

> Anyway i'll benchmark a few more of our codes plus the lapack now.
> DEC against g77 against fort:
> And to be completely unfair i'll use Goto's assembler routines.
> (against the DEC alpha).

Yeah, no compiler can beat hand-optimized assembler on the LAPACK
routines.

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html



  parent reply	other threads:[~1999-07-01  4:00 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-30  4:00 Compaq Fortran for Linux Alpha Systems now available for Beta Test! Steve Lionel
1999-06-30  4:00 ` C.Simmendinger
1999-06-30  4:00   ` Toon Moene
1999-06-30  4:00     ` C.Simmendinger
1999-06-30  4:00       ` Michael Kagalenko
1999-07-01  4:00         ` Chris Morgan
1999-07-05  4:00           ` James Prentice
1999-07-05  4:00             ` Paul DeMone
1999-06-30  4:00       ` Steve Lionel
1999-07-01  4:00       ` Toon Moene [this message]
1999-07-02  4:00         ` C.Simmendinger
1999-07-02  4:00           ` Toon Moene
1999-07-02  4:00             ` C.Simmendinger
1999-07-02  4:00               ` Steven Hobbs
1999-07-02  4:00                 ` Toon Moene
1999-07-02  4:00                   ` Jim Gettys
1999-07-02  4:00                     ` Toon Moene
1999-06-30  4:00 ` Michael Kagalenko
1999-06-30  4:00   ` Thor Lancelot Simon
1999-06-30  4:00     ` Michael Kagalenko
1999-06-30  4:00       ` Steve Lionel
1999-07-01  4:00         ` Peter da Silva
1999-07-01  4:00           ` Graham Allan
1999-07-01  4:00             ` Thor Lancelot Simon
1999-07-01  4:00 ` Stuart Midgley
1999-07-02  4:00   ` mustang
1999-07-05  4:00 ` Stefan A. Deutscher
1999-07-05  4:00   ` Larry Kilgallen
1999-07-05  4:00   ` Hartmann Schaffer
1999-07-05  4:00     ` Greg Lindahl
1999-07-06  4:00     ` Steve Lionel
1999-07-07  4:00       ` Edward Lee
1999-07-07  4:00         ` Gary
1999-07-07  4:00           ` Richard Maine
1999-07-07  4:00             ` Gary Scott
1999-07-09  4:00               ` Gary Scott
1999-07-09  4:00                 ` Stefan A. Deutscher
1999-07-09  4:00                   ` Greg Lindahl
1999-07-09  4:00                     ` Emil Briggs
1999-07-10  4:00                       ` Gary Scott
1999-07-08  4:00           ` Christopher Browne
1999-07-08  4:00         ` Edward Lee
1999-07-11  4:00 ` Christian Hasse
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