* g77 performance
@ 1998-01-17 5:00 Olgun Guvench
1998-01-17 5:00 ` Toon Moene
1998-01-19 5:00 ` Christopher Grayce
0 siblings, 2 replies; 7+ messages in thread
From: Olgun Guvench @ 1998-01-17 5:00 UTC (permalink / raw)
(sorry about the first aborted post)
Hi,
Currently I am a RedHat 4.1 user on a Pentium 166 MMX. I am running some
floating point intensive molecular dynamics Fortran code compiled under
g77 2.7.2.3 and am hoping to move to an Alpha processor based computer for
a performance boost. I would very much appreciate any opinions on how g77
compares to Digital Fortran with respect to performance on alpha cpu's. I
would prefer to stick with Linux/g77 after switching to the alpha, and am
wondering if and how much performance will be compromised as compared to
Digital UNIX/Fortran.
I realize this message does not contain too much "meat" regarding what
type of algorithms the code uses, but as I am just now beginning to take a
look at the guts of the code I am afraid I cannot offer much more to go
on.
Perhaps someone can address with what types of algorithms or code
structure either of the two Fortran compiliers excel or do not excel.
(or any other Fortran 77 compilers for alpha for that matter...)
Thank you in advance.
Yours,
Olgun Guvench
og32@columbia.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: g77 performance
1998-01-17 5:00 g77 performance Olgun Guvench
@ 1998-01-17 5:00 ` Toon Moene
1998-01-17 5:00 ` H.W. Stockman
1998-01-19 5:00 ` Christopher Grayce
1 sibling, 1 reply; 7+ messages in thread
From: Toon Moene @ 1998-01-17 5:00 UTC (permalink / raw)
Olgun Guvench <og32@columbia.edu> wrote:
> Currently I am a RedHat 4.1 user on a Pentium 166 MMX. I am running some
> floating point intensive molecular dynamics Fortran code compiled under
> g77 2.7.2.3 and am hoping to move to an Alpha processor based computer for
> a performance boost. I would very much appreciate any opinions on how g77
> compares to Digital Fortran with respect to performance on alpha cpu's. I
> would prefer to stick with Linux/g77 after switching to the alpha, and am
> wondering if and how much performance will be compromised as compared to
> Digital UNIX/Fortran.
Currently, we've only got data on the SPECfp95 suite for a 500 Mhz, 1 Mbyte
cache, non-SDRAM Alpha. For this configuration, Digital Fortran gets around
13.3 and egcs-1.0.1/g77 gets approximately 8.5.
Don't bother with the combination g77-0.5.21+gcc-2.7.2.3 for _speed_.
> Perhaps someone can address with what types of algorithms or code
> structure either of the two Fortran compiliers excel or do not excel.
> (or any other Fortran 77 compilers for alpha for that matter...)
You'll run into performance problems in the following cases:
1. Your code does a lot of REAL -> INTEGER or INTEGER -> REAL conversions.
2. It does a lot of sqrt's (Digital's compiler uses a special 4-sqrts-
at-a-time run time library routine).
3. Your code has a lot of array accesses that are a constant number
of bytes apart in loops, like (note the B's):
A(1) = 0.0
DO I = 2, N
A(I) = B(I) + B(I-1)
ENDDO
egcs/g77 tends to spend too many registers on this, which hurts in larger
loops. Work is underway on this shortcoming.
HTH,
--
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] 7+ messages in thread
* Re: g77 performance
1998-01-17 5:00 ` Toon Moene
@ 1998-01-17 5:00 ` H.W. Stockman
0 siblings, 0 replies; 7+ messages in thread
From: H.W. Stockman @ 1998-01-17 5:00 UTC (permalink / raw)
Toon Moene wrote:
>
> Olgun Guvench <og32@columbia.edu> wrote:
>
> > Currently I am a RedHat 4.1 user on a Pentium 166 MMX. I am running some
> > floating point intensive molecular dynamics Fortran code compiled under
> > g77 2.7.2.3 and am hoping to move to an Alpha processor based computer for
> > a performance boost. I would very much appreciate any opinions on how g77
[...]
> > Perhaps someone can address with what types of algorithms or code
> > structure either of the two Fortran compiliers excel or do not excel.
> > (or any other Fortran 77 compilers for alpha for that matter...)
> You'll run into performance problems in the following cases:
> 1. Your code does a lot of REAL -> INTEGER or INTEGER -> REAL conversions.
> 2. It does a lot of sqrt's (Digital's compiler uses a special 4-sqrts-
> at-a-time run time library routine).
[...]
The sqrts could indeed be the speed limiting factor,
since most molecular dynamics calculations need to
calculate something like sqrt((x1-x2)**2 + (y1-y2)**2 + (z1-z2)**2)
often.
A similar thread came up in comp.arch about a 4 months ago,
in light of the recognition that most MD programs really
need sqrt(1/rSqrd). It was pointed out that the standard
Newton's method formulation is easily cast in 1/rSqrd,
removing a lot of unnecessary calculation (in particular,
the division). Terje Mathisen was tracking the various
methods at that time, and indeed it was possible to
achieve quite a bit of register-level parallelism.
Not all MD methods may benefit by this approach, but it is
possible that a few carefully-selected hand optimizations
might overwhelm the differences among the compilers.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: g77 performance
1998-01-17 5:00 g77 performance Olgun Guvench
1998-01-17 5:00 ` Toon Moene
@ 1998-01-19 5:00 ` Christopher Grayce
1998-01-20 5:00 ` Craig Burley
1998-01-22 5:00 ` Christian Worley
1 sibling, 2 replies; 7+ messages in thread
From: Christopher Grayce @ 1998-01-19 5:00 UTC (permalink / raw)
Olgun Guvench wrote:
>
> (sorry about the first aborted post)
>
> Hi,
>
> Currently I am a RedHat 4.1 user on a Pentium 166 MMX. I am
> running some floating point intensive molecular dynamics Fortran
> code compiled under g77 2.7.2.3 and am hoping to move to an Alpha
> processor based computer for a performance boost. I would very much
> appreciate any opinions on how g77 compares to Digital Fortran with
> respect to performance on alpha cpu's. I
I do MD and MC simulations of polymers. Bottom line is that the
DEC compiler is significantly better and generates code that is
about 50% faster, no matter how carefully I tune the source. Don't
know why, but those folks at Digital apparently know their business.
Haven't tried the latest incarnation of g77 and egcs, but then I'm
not using the newest DEC compiler either.
Christopher Grayce
Dept of Chemistry
UC Irvine
cgrayce at uci dot edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: g77 performance
1998-01-19 5:00 ` Christopher Grayce
@ 1998-01-20 5:00 ` Craig Burley
1998-01-22 5:00 ` Christian Worley
1 sibling, 0 replies; 7+ messages in thread
From: Craig Burley @ 1998-01-20 5:00 UTC (permalink / raw)
Christopher Grayce <cgrayce@flattop.ps.uci.edu> writes:
> I do MD and MC simulations of polymers. Bottom line is that the
> DEC compiler is significantly better and generates code that is
> about 50% faster, no matter how carefully I tune the source. Don't
> know why, but those folks at Digital apparently know their business.
> Haven't tried the latest incarnation of g77 and egcs, but then I'm
> not using the newest DEC compiler either.
egcs includes some performance improvements to g77. These might
help close the gap for some applications.
But, the folks at Digital indeed do know their business, when
it comes to producing decent Fortran compilers anyway. They
spent a fair amount of time and effort making sure their Fortran
compilers optimized properly for Alphas, using techniques that
the gcc/egcs back end doesn't know about yet (like true
loop prefetching/unrolling). And they also made the
underlying run-time libraries fast in the critical places.
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: g77 performance
1998-01-19 5:00 ` Christopher Grayce
1998-01-20 5:00 ` Craig Burley
@ 1998-01-22 5:00 ` Christian Worley
1998-01-23 5:00 ` Greg Lindahl
1 sibling, 1 reply; 7+ messages in thread
From: Christian Worley @ 1998-01-22 5:00 UTC (permalink / raw)
Christopher Grayce wrote:
>
>
> I do MD and MC simulations of polymers. Bottom line is that the
> DEC compiler is significantly better and generates code that is
> about 50% faster, no matter how carefully I tune the source. Don't
> know why, but those folks at Digital apparently know their business.
Will Digitals compiler for DUX run under AXP/Linux?
Chris
--
When I die, please cast my ashes upon Bill Gates
--for once, let him clean up after me!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: g77 performance
1998-01-22 5:00 ` Christian Worley
@ 1998-01-23 5:00 ` Greg Lindahl
0 siblings, 0 replies; 7+ messages in thread
From: Greg Lindahl @ 1998-01-23 5:00 UTC (permalink / raw)
Christian Worley <cworley@altatech.com> writes:
> Will Digitals compiler for DUX run under AXP/Linux?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-01-23 5:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-17 5:00 g77 performance Olgun Guvench
1998-01-17 5:00 ` Toon Moene
1998-01-17 5:00 ` H.W. Stockman
1998-01-19 5:00 ` Christopher Grayce
1998-01-20 5:00 ` Craig Burley
1998-01-22 5:00 ` Christian Worley
1998-01-23 5:00 ` Greg Lindahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox