Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: g77 performance
Date: 1998/01/17	[thread overview]
Message-ID: <69qe8l$2sa$2@news.utrecht.NL.net> (raw)
In-Reply-To: Pine.GSO.3.95L.980117003809.17300A-100000@bonjour.cc.columbia.edu


Olgun  Guvench <og32@columbia.edu> wrote:

> Currently I am a RedHat 4.1 user on a Pentium 166 MMX.  I am running some
> floating point intensive molecular dynamics Fortran code compiled under
> g77 2.7.2.3 and am hoping to move to an Alpha processor based computer for
> a performance boost.  I would very much appreciate any opinions on how g77
> compares to Digital Fortran with respect to performance on alpha cpu's.  I
> would prefer to stick with Linux/g77 after switching to the alpha, and am
> wondering if and how much performance will be compromised as compared to
> Digital UNIX/Fortran.

Currently, we've only got data on the SPECfp95 suite for a 500 Mhz, 1 Mbyte 
cache, non-SDRAM Alpha.  For this configuration, Digital Fortran gets around 
13.3 and egcs-1.0.1/g77 gets approximately 8.5.

Don't bother with the combination g77-0.5.21+gcc-2.7.2.3 for _speed_.

> Perhaps someone can address with what types of algorithms or code
> structure either of the two Fortran compiliers excel or do not excel.
> (or any other Fortran 77 compilers for alpha for that matter...)

You'll run into performance problems in the following cases:

1. Your code does a lot of REAL -> INTEGER or INTEGER -> REAL conversions.
2. It does a lot of sqrt's (Digital's compiler uses a special 4-sqrts-
   at-a-time run time library routine).
3. Your code has a lot of array accesses that are a constant number
   of bytes apart in loops, like (note the B's):

      A(1) = 0.0
      DO I = 2, N
         A(I) = B(I) + B(I-1)
      ENDDO

   egcs/g77 tends to spend too many registers on this, which hurts in larger
   loops.  Work is underway on this shortcoming.

HTH,

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



  reply	other threads:[~1998-01-17  5:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-17  5:00 g77 performance Olgun Guvench
1998-01-17  5:00 ` Toon Moene [this message]
1998-01-17  5:00   ` H.W. Stockman
1998-01-19  5:00 ` Christopher Grayce
1998-01-20  5:00   ` Craig Burley
1998-01-22  5:00   ` Christian Worley
1998-01-23  5:00     ` Greg Lindahl
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