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

Toon Moene wrote:

> 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.

Well, in my experience the problem with egcs is like this:If you can keep
the data in the cache, egcs does a pretty good job.
If not then not.
Just try a very simple thing, a gemm, complex or not. Run that unoptimized
(no cache blocking etc) through egcs. The performance then is
limited by memory bandwidth (as it should). Do the same with
the GEM (DEC) compiler: It's 3-4 times faster.
The only explanation i can possibly think of is that
the strategy of the GEM in terms of memory access is way more sophisticated
than
anything egcs has to offer.
Alternatively GEM does some sort of KAP-like preprocessing,
but this doesn't fit with other benchmarks.

> However, given that you use -fno-emulate-complex, I deduce:
>
> 1. Your code is complex-arithmetic-bound.

Partly (20-30% maybe)

> 2. It is DOUBLE COMPLEX

Yepp.

> 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.

-O3 should inline that (!?). I also use the cpml.

> 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).

Nope ..
Sorry :-)

Christian






  reply	other threads:[~1999-07-02  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
1999-07-02  4:00         ` C.Simmendinger [this message]
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   ` 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-05  4:00   ` Larry Kilgallen
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