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/22	[thread overview]
Message-ID: <3425c2b2.23558254@netnews.worldnet.att.net> (raw)
In-Reply-To: 5vrlmo$9e7@news1.zippo.com


On 18 Sep 1997 16:43:04 GMT, lindahl@pbm.com (Greg Lindahl) wrote:

>1) make the index vars in jacobi.f INTEGER*8 and
>2) make the arrays start at 0 instead of 1,
>
>I get 59 MFlops on a 21164 500mhz (PC164).

Greg,

Odd suggestion, but it seems to work. However, the INTEGER*8 of i and
j seem to do nothing. Also, on my machine (a 433 MHz PC164 with fully
populated SIMM slots) I get 46 MFlops which is less than a clock ratio
from yours. Here is the code fragment that changes:

      real psi(0:nx_max-1,0:ny_max-1)
      real psi_new(0:nx_max-1,0:ny_max-1)
      real f(0:nx_max-1,0:ny_max-1)
      real a1,a2,a3,a4,a5

      integer i,j

C    Operation count = 9 operations/grid point

      do j = 1, ny-2
        do i = 1, nx-2
          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


One other thing: take the print statement out of the loop in main3.f:
2c2
<       implicit none
---
> CLAL      implicit none
22a23
>       dimension gnorm_a(100)
95c96,97
<         print *, it, gnorm
---
> CLAL        print *, it, gnorm
>       gnorm_a(it) = gnorm
110a113,116
>
>       do ii=1,itcnt
>         write(*,*)gnorm_a(ii)
>       end do                                                                 

And you will see a performance impact around 10%.



  parent reply	other threads:[~1997-09-22  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   ` Luke Lonergan
1997-09-17  4:00     ` Linus Torvalds
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-17  4:00       ` MFlops Comparison using g77 (bad news) Greg Lindahl
1997-09-17  4:00       ` Rowan D. Hughes
1997-09-17  4:00         ` Xiaoguang Zhang
1997-09-19  4:00     ` James Lewis Nance
1997-09-22  4:00       ` Luke Lonergan
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   ` MFlops Comparison using g77 (bad news) - bench.tgz (1/1) Luke Lonergan
1997-09-16  4:00 ` MFlops Comparison using g77 (bad news) Ulrich Ruede
1997-09-16  4:00 ` H.W. Stockman
1997-09-16  4:00   ` Greg Lindahl
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 [this message]
  -- 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