Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "H.W. Stockman" <hwstock@swcp.com>
To: Luke Lonergan <llonerga@worldnet.att.net>
Subject: Re: MFlops Comparison using g77 (bad news)
Date: 1997/09/16	[thread overview]
Message-ID: <341E957B.7233@swcp.com> (raw)
In-Reply-To: 5vl4lv$8ko@bgtnsc03.worldnet.att.net


Luke Lonergan wrote:
[...]
> ------------------------
>         C    Operation count = 9 operations/grid point
> 
>         do j = 2, ny-1
>                 do i = 2, nx-1
>                         psi_new(i,j) = a1*psi(i+1,j)+a2*psi(i-1,j)+
>      &                           a3*psi(i,j+1)+a4*psi(i,j-1)-
>      &                           a5*f(i,j)
>                 end do
>         end do
> ----------------------------------------------------------------------------
> ------------------------
> 
> This is the performance that I get:
> 
>         36 MFlops on the 21164 Alpha 433 MHz    (This is obviously unexpected)
> 
>         40 MFlops on the PPro 200MHz
>         55 MFlops on the PentiumII 300 MHz
>         70 MFlops on the SGI Origin 2000 (MIPS R10000 at 195 MHz)
>         100 MFlops on the 21164 Alpha 450MHz on the Cray T3E
>         1000 MFlops on the Cray T90
[...]
> I think the compiler is the culprit. Any ideas?

The compiler is probably the culprit.  We don't know
how big your arrays are, so there is a chance you are thrashing
the cache with all that column-flipping, but I doubt it.  

About a year back we did some
comparisons among various architechtures and compilers, and
found: (1) g77 generally produced code a factor of 2 to 3 slower
than the commercial compilers (like Lahey on the PPro, DEC
FORTRAN on the alpha); for our memory-intensive tests, a 500
MHz DECalpha system was about 3 times faster than a 200 MHz
PPro.  Unfortunately, the tests were slightly skewed by the fact
that the alpha had 8 MB L3 on a total array set of about 12 MB,
but subsequent tests suggested at least a factor of 2.

On gcc code, one fellow did some "quick" gcc hand optimizations --
mainly stuffing important variables into registers -- and 
improved the alpha performance by nearly a factor of two.

You might request someone try to compile your code with
egcs-inspired g77.  I saw a note here recently (possibly
from Craig Burley?) that such a combination was possible.



  parent reply	other threads:[~1997-09-16  4:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-16  4:00 MFlops Comparison using g77 (bad news) Luke Lonergan
1997-09-16  4:00 ` Toon Moene
1997-09-16  4:00   ` MFlops Comparison using g77 (bad news) - bench.tgz (0/1) Luke Lonergan
1997-09-18  4:00     ` Thomas Leitner
1997-09-18  4:00       ` Andrew G. Morgan
1997-09-18  4:00     ` H.W. Stockman
1997-09-16  4:00   ` MFlops Comparison using g77 (bad news) Greg Lindahl
1997-09-16  4:00   ` Luke Lonergan
1997-09-17  4:00     ` Linus Torvalds
1997-09-17  4:00       ` Rowan D. Hughes
1997-09-17  4:00         ` Xiaoguang Zhang
1997-09-17  4:00       ` Greg Lindahl
1997-09-17  4:00       ` Luke Lonergan
1997-09-17  4:00         ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (1/1) Luke Lonergan
1997-09-17  4:00         ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) Luke Lonergan
1997-09-17  4:00           ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) " Luke Lonergan
1997-09-17  4:00           ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) - dpkernel.tgz (1/1) Luke Lonergan
1997-09-19  4:00     ` MFlops Comparison using g77 (bad news) James Lewis Nance
1997-09-22  4:00       ` Luke Lonergan
1997-09-16  4:00   ` MFlops Comparison using g77 (bad news) - bench.tgz (1/1) Luke Lonergan
1997-09-16  4:00 ` H.W. Stockman [this message]
1997-09-16  4:00   ` MFlops Comparison using g77 (bad news) Greg Lindahl
1997-09-16  4:00 ` Ulrich Ruede
1997-09-16  4:00 ` Craig Burley
1997-09-18  4:00 ` Greg Lindahl
1997-09-19  4:00   ` Burkhard Neidecker-Lutz
1997-09-20  4:00     ` Toon Moene
1997-09-22  4:00   ` Luke Lonergan
  -- strict thread matches above, loose matches on Subject: below --
1997-09-17  4:00 Robert Harley
1997-09-22  4:00 ` Luke Lonergan
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