From: rowan@tsunami.jcu.edu.au (Rowan D. Hughes)
Subject: Re: MFlops Comparison using g77 (bad news)
Date: 1997/09/17 [thread overview]
Message-ID: <slrn61vpl6.cq.rowan@tsunami.jcu.edu.au> (raw)
In-Reply-To: 5vn7si$26q$1@palladium.transmeta.com
On 17 Sep 1997 00:22:42 GMT, Linus Torvalds <torvalds@transmeta.com> wrote:
>In article <341f1031.69553746@netnews.worldnet.att.net>,
>Luke Lonergan <luke@navo.hpc.mil> wrote:
>>
>>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:
>>
>>----------------------------------------------------------------------------
...[snip
>>
>> 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];
>> }
>> }
>>----------------------------------------------------------------------------
>
>You left out the definitions for the variables, but let me guess: they
>are all "int" rather than "long"?
I presume he's updating a stream function or vorticity-driving fn, and
so will be REAL*4 or *8. Definitely *8 on the C90. Enough digression.
One simple thing--it has caught me before--he should check that the g77
code is giving the correct answers. If all machines are IEEE compliant
(the C90 won't be) all answers should be *very* close to each other.
They should be *identical* with -O0. g77 has some problems with
-f-move-all-movables; it can sometimes fail to see a dependancy within
a loop. Also, loop-unrolling can make a huge (x7) difference on alphas and
I vaguely remember gcc/g77 having some trouble with this a while ago.
Thusly, I concur with the others that g77 is the most likely culprit.
Using f2c + gcc + yaf will probably yield the same problems found with g77.
Time to spend money on Nastran, NAG, Microway, or wait for the
re-worked g77. Good f77/90 is not Free (tm).
=================================================================
Rowan Hughes, Maths Dept, James Cook University. x-csrdh@lion.jcu.edu.au
next prev parent reply other threads:[~1997-09-17 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 ` H.W. Stockman
1997-09-16 4:00 ` Greg Lindahl
1997-09-16 4:00 ` Ulrich Ruede
1997-09-16 4:00 ` Toon Moene
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 ` Luke Lonergan
1997-09-17 4:00 ` Linus Torvalds
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) " 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) " Luke Lonergan
1997-09-17 4:00 ` Rowan D. Hughes [this message]
1997-09-17 4:00 ` MFlops Comparison using g77 (bad news) 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 (1/1) Luke Lonergan
1997-09-18 4:00 ` MFlops Comparison using g77 (bad news) 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