From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: MFlops Comparison using g77 (bad news)
Date: 1997/09/16 [thread overview]
Message-ID: <5vml8c$6kb$1@news.utrecht.NL.net> (raw)
In-Reply-To: 5vl4lv$8ko@bgtnsc03.worldnet.att.net
"Luke Lonergan" <llonerga@worldnet.att.net> wrote:
> I am running a simple Ocean model to benchmark machines. The computational
> kernel is simple:
>
>
----------------------------------------------------------------------------
> ------------------------
> 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
>
----------------------------------------------------------------------------
> ------------------------
[ ... Horrendous performance figures ... ]
> One of several things is wrong. It's not the memory system, as I observe
> flat performance up to the 256 MBytes
> of memory on the machine.
>
> I think the compiler is the culprit. Any ideas?
This sort of code tends to benefit rather handsomely from the optimisation
known as "strength reduction", basically changing all array index arithmetic
by simple stride 4 (or 8 in case of DOUBLE PRECISION) steps through the
arrays.
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'm working on a solution to this problem, but so far I've produced nothing
more than a patch purely as a Gedankenexperiment (on a Motorola 68040 based
NEXTSTATION ;-)
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.ai.mit.edu; NWP: http://www.knmi.nl/hirlam
next prev 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 [this message]
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) 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) - 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-19 4:00 ` MFlops Comparison using g77 (bad news) James Lewis Nance
1997-09-22 4:00 ` Luke Lonergan
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 ` 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) 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