Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: luke@navo.hpc.mil (Luke Lonergan)
Subject: Re: MFlops Comparison using g77 (bad news)
Date: 1997/09/16	[thread overview]
Message-ID: <341f1031.69553746@netnews.worldnet.att.net> (raw)
In-Reply-To: 5vml8c$6kb$1@news.utrecht.NL.net


On 16 Sep 1997 19:04:44 GMT, Toon Moene <toon@moene.indiv.nluug.nl>
wrote:

>However, in g77 "strength reduction" is almost completely ineffective on the 
>Alpha, because the optimisation pass doesn't know how to deal with subword 
>integers (the default INTEGER in g77 is 32 bits wide, which is half of a 
>64-bit register).

I implemented the kernel in C this morning. Unfortunately my news
server was screwed up at work so I couldn't post the results until
now:

----------------------------------------------------------------------------
/*    Operation count = 9 operations/grid point */

        for (j=1;j<*ny-1;j++) {

          indj   = (*nx)*j;
          indjp1 = (*nx)*(j+1);
          indjm1 = (*nx)*(j-1);

          for (i=1;i<*nx-1;i++) {
            indx   = i+indj;
            psi_new[indx] = (*a1)*psi[indx+1]+(*a2)*psi[indx-1]+
                           (*a3)*psi[i+indjp1]+(*a4)*psi[i+indjm1]-
                           (*a5)*f[indx];
          }
        }
----------------------------------------------------------------------------

I expected the result to be similar to the Fortran version, but lo and
behold:

        48 MFlops, 433 MHz Alpha using gcc and the C kernel
        36 MFlops, 433 MHz Alpha using g77

        36 MFlops on the PPro 200 using gcc and the C kernel
        40 MFlops on the PPro 200 using g77

The answer is still dramatically (factor of 2?) lower than I would
like, but interesting.  I thought the code generator was the culprit,
but apparently the front end is involved in the Alpha's poor
performance as well.

BTW, the compiler options I used were:
	-ffast-math -O2 (-m486 on the PPro)

I tried using the -fstrength-reduce on the C kernel and the Fortran
and got no change on the Fortran (36 MFlops) and a bump to the
C (49 MFlops versus 48).

I am posting the source tree here for anyone else who would like to
take a whack at it.

Luke



  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 ` Craig Burley
1997-09-16  4:00 ` Toon Moene
1997-09-16  4:00   ` Greg Lindahl
1997-09-16  4:00   ` MFlops Comparison using g77 (bad news) - bench.tgz (0/1) Luke Lonergan
1997-09-18  4:00     ` H.W. Stockman
1997-09-18  4:00     ` Thomas Leitner
1997-09-18  4:00       ` Andrew G. Morgan
1997-09-16  4:00   ` Luke Lonergan [this message]
1997-09-17  4:00     ` MFlops Comparison using g77 (bad news) 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 (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-17  4:00           ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) - dpkernel.tgz (0/1) Luke Lonergan
1997-09-17  4:00         ` MFlops Comparison using g77 (bad news) - 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 ` MFlops Comparison using g77 (bad news) H.W. Stockman
1997-09-16  4:00   ` Greg Lindahl
1997-09-16  4:00 ` Ulrich Ruede
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