From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,100c510dac09e617 X-Google-Attributes: gid111c93,public From: luke@navo.hpc.mil (Luke Lonergan) Subject: Re: MFlops Comparison using g77 (bad news) Date: 1997/09/22 Message-ID: <3425c2b2.23558254@netnews.worldnet.att.net>#1/1 X-Deja-AN: 274375504 References: <5vl4lv$8ko@bgtnsc03.worldnet.att.net> <5vrlmo$9e7@news1.zippo.com> Reply-To: luke@navo.hpc.mil Organization: AT&T WorldNet Services Newsgroups: comp.os.linux.alpha 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%.