* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
@ 1998-08-22 4:00 ` Toon Moene
1998-08-22 4:00 ` Greg Lindahl
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Toon Moene @ 1998-08-22 4:00 UTC (permalink / raw)
ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) wrote:
> We bought an LX board with 21164 533MHz CPU and 2MB cache running
> Linux. Memory size is 128 MB.
> 1. Is 21164 cpu for the LX board different from 21164a in the
> DEC server [7305] ?
As far as I know not. However, the memory system is completely different
from that of the LX boards, and that's an important factor too.
> 2. Is there any possible mistake I could have made in compling
> my application, which is not favored by alpha?
Well, it's hard to say without you giving actual command line arguments to
g77.
> It is a terrible feeling. I expected that my app runs substantially
> faster on the LX board than on Sun Ultra I. Now I found that it
> is not so.
I must say I find it surprising too; on the other hand, the Sun Ultra is
probably much more expensive than the PC164LX.
Another note: You wrote your code is double complex based. This is an area
where the GNU compiling system is known to be weak. Officially, it has
support internally for Single Precision Complex and Double Precision Complex
data, but as this doesn't work flawlessly, the Fortran Frontend doesn't use
it, but explicitly spells out the complex computations itself to the code
generation phase. This tends to produce less well optimised code: On an
example posted to the egcs mailing list several months ago, I obtained a 2
fold speedup by compiling it with -fno-emulate-complex - however, that's
because I know the problematic support for the complex data types has no
effect on my NEXT station (m68k-next-nextstep3).
Hope this helps,
--
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.org; NWP: http://www.knmi.nl/hirlam
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
1998-08-22 4:00 ` Toon Moene
@ 1998-08-22 4:00 ` Greg Lindahl
1998-08-23 4:00 ` G. Hugh SONG
1998-08-22 4:00 ` Peter Mardahl
` (3 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22 4:00 UTC (permalink / raw)
ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:
> 2. Is there any possible mistake I could have made in compling
> my application, which is not favored by alpha?
Are you using the egcs compilers? They are far better than g77 based
on gcc-2.7.2 on the alphas.
Does your application make heavy use of the math library (sin, cos,
etc?) If so, you should try the new "fast math libraries" and see how
that helps.
Given your Sun results (sun's compiler twice as good as g77), I would
suspect that instead you have some aspect which is confusing g77, such
as stencil operations that g77 uses too many registers for.
-- g
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Disappointing benchmark result with LX
1998-08-22 4:00 ` Greg Lindahl
@ 1998-08-23 4:00 ` G. Hugh SONG
1998-08-23 4:00 ` Greg Lindahl
0 siblings, 1 reply; 11+ messages in thread
From: G. Hugh SONG @ 1998-08-23 4:00 UTC (permalink / raw)
In article <6rnens$1au$145@elle.eunet.no>, lindahl@pbm.com (Greg Lindahl) writes:
> ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:
>
> > 2. Is there any possible mistake I could have made in compling
> > my application, which is not favored by alpha?
>
> Are you using the egcs compilers? They are far better than g77 based
> on gcc-2.7.2 on the alphas.
Yes. Version 1.0.3a-8, probably a month and half old. I guess we need
to upgrade it to the most recent one.
> Does your application make heavy use of the math library (sin, cos,
> etc?) If so, you should try the new "fast math libraries" and see how
> that helps.
We installed libffm.a and used "-lffm -lm". Should the order be
reversed?
> Given your Sun results (sun's compiler twice as good as g77), I would
> suspect that instead you have some aspect which is confusing g77, such
> as stencil operations that g77 uses too many registers for.
>
> -- g
The version of that g77 on Sun Ultra I is probably a year old.
Thanks a lot.
--
G. Hugh Song
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disappointing benchmark result with LX
1998-08-23 4:00 ` G. Hugh SONG
@ 1998-08-23 4:00 ` Greg Lindahl
0 siblings, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-23 4:00 UTC (permalink / raw)
ghsong@NoSpamkjist.ac.kr (G. Hugh SONG) writes:
> We installed libffm.a and used "-lffm -lm". Should the order be
> reversed?
That's correct.
From your investigations, you have a code which reveals a flaw in the
current egcs compilers. If you can pluck out a small kernel which
reveals this flaw and send it to the egcs folks, I'm sure they'd be
happy to look at it more closely.
-- g
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
1998-08-22 4:00 ` Toon Moene
1998-08-22 4:00 ` Greg Lindahl
@ 1998-08-22 4:00 ` Peter Mardahl
1998-08-22 4:00 ` Greg Lindahl
1998-08-22 4:00 ` Greg Lindahl
1998-08-22 4:00 ` Joseph Sarkes
` (2 subsequent siblings)
5 siblings, 2 replies; 11+ messages in thread
From: Peter Mardahl @ 1998-08-22 4:00 UTC (permalink / raw)
In article <6rlg43$5e7$1@news.kjist.ac.kr>,
G. Hugh SONG <ghsong@NOSPAMkjist.ac.kr> wrote:
>We bought an LX board with 21164 533MHz CPU and 2MB cache running
>Linux. Memory size is 128 MB.
>
>We ran our own application (double complex Schrodinger-type evolution
>equationon) with it and compared the execution time with that on Sun's Ultra I.
>When we ran g77 on both machines, the speed measurements are comparable within
g77? I think that is your problem.
g77 doesn't produce code anywhere near as fast as
Digital FORTRAN.
Performance requires CPU *and* fast memory *and* fast compilers, at the least,
and possibly *and* fast I/O *and* fast disks *and* .....
Your compiler is the weak link here, most likely! See if you can get
a friend to use Digital FORTRAN on it, and run the binary you make
on your Linux box. It should be legal if you link the binary statically.
PeterM
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
` (2 preceding siblings ...)
1998-08-22 4:00 ` Peter Mardahl
@ 1998-08-22 4:00 ` Joseph Sarkes
1998-08-22 4:00 ` Peter Mardahl
1998-08-22 4:00 ` Greg Lindahl
5 siblings, 0 replies; 11+ messages in thread
From: Joseph Sarkes @ 1998-08-22 4:00 UTC (permalink / raw)
G. Hugh SONG (ghsong@NOSPAMkjist.ac.kr) wrote:
: When we ran g77 on both machines, the speed measurements are comparable within
: 3%. The LX ran a little slower. However, the same code ran about
: 2 times faster with Sun's own f77.
I remember seeing something about this, perhaps in a netbsd mailing list.
It seems that the digital unix compiler has a number of optimizations that
are not yet done by the gnu compiler, so it runs markedly faster on some
numeric stuff.
--
Joseph Sarkes mailto:joe@mediaone.net
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
` (3 preceding siblings ...)
1998-08-22 4:00 ` Joseph Sarkes
@ 1998-08-22 4:00 ` Peter Mardahl
1998-08-22 4:00 ` Greg Lindahl
5 siblings, 0 replies; 11+ messages in thread
From: Peter Mardahl @ 1998-08-22 4:00 UTC (permalink / raw)
In article <6rlg43$5e7$1@news.kjist.ac.kr>,
G. Hugh SONG <ghsong@NOSPAMkjist.ac.kr> wrote:
>We bought an LX board with 21164 533MHz CPU and 2MB cache running
>Linux. Memory size is 128 MB.
>
>We ran our own application (double complex Schrodinger-type evolution
>equationon) with it and compared the execution time with that on Sun's Ultra I.
>When we ran g77 on both machines, the speed measurements are comparable within
g77? I think that is your problem.
g77 doesn't produce code anywhere near as fast as
Digital FORTRAN.
Performance requires CPU *and* fast memory *and* fast compilers, at the least,
and possibly *and* fast I/O *and* fast disks *and* .....
Your compiler is the weak link here, most likely! See if you can get
a friend to use Digital FORTRAN on it, and run the binary you make
on your Linux box. It should be legal if you link the binary statically.
PeterM
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Disappointing benchmark result with LX
1998-08-22 4:00 Disappointing benchmark result with LX G. Hugh SONG
` (4 preceding siblings ...)
1998-08-22 4:00 ` Peter Mardahl
@ 1998-08-22 4:00 ` Greg Lindahl
5 siblings, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22 4:00 UTC (permalink / raw)
ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:
> 2. Is there any possible mistake I could have made in compling
> my application, which is not favored by alpha?
Are you using the egcs compilers? They are far better than g77 based
on gcc-2.7.2 on the alphas.
Does your application make heavy use of the math library (sin, cos,
etc?) If so, you should try the new "fast math libraries" and see how
that helps.
Given your Sun results (sun's compiler twice as good as g77), I would
suspect that instead you have some aspect which is confusing g77, such
as stencil operations that g77 uses too many registers for.
-- g
^ permalink raw reply [flat|nested] 11+ messages in thread