From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9a45ac8930ff0a33 X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: g77 performance Date: 1998/01/17 Message-ID: <69qe8l$2sa$2@news.utrecht.NL.net>#1/1 X-Deja-AN: 316822625 References: Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha Olgun Guvench 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