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: "H.W. Stockman" Subject: Re: MFlops Comparison using g77 (bad news) - bench.tgz (0/1) Date: 1997/09/18 Message-ID: <3421C4E9.7EE9@swcp.com>#1/1 X-Deja-AN: 273682204 References: <5vl4lv$8ko@bgtnsc03.worldnet.att.net> <5vml8c$6kb$1@news.utrecht.NL.net> <341f0c1d.68509433@netnews.worldnet.att.net> Organization: Lentil Sorbet, Inc. Reply-To: hwstock@swcp.com Newsgroups: comp.os.linux.alpha Luke Lonergan wrote: > /* 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 am posting the source tree here for anyone else who would like to > take a whack at it. Have you tried forcing some of the intensely-used pointers into registers?