From: conrad@hive.me.gu.edu.au (Conrad Sanderson)
Subject: Re: Alpha's floating point performance
Date: 1998/11/11 [thread overview]
Message-ID: <slrn74i197.6lv.conrad@hive.me.gu.edu.au> (raw)
In-Reply-To: 729g65$cub$1@nnrp1.dejanews.com
bxfqoxog@my-dejanews.com <bxfqoxog@my-dejanews.com> wrote:
>My question is: who is responsible (or may be responsible) for the
>reported fact, that Pentium 300 outperformed Digital 533 in floating
>point operations? Is it C compiler? Can I expect the same thing
>with FORTRAN compiler? Or is it Linux/Alpha problem? Does anyone
>has any experience?
We did 2 tests. One running FD code (Numerical Simulation of
EM radiation). Second test was neural network code.
The C++ source code in each case was identical for both machines.
The setup was:
1) Alpha 533 MHz / egcs 1.1 / Linux 2.1.123 / 256M of ram
2) Pentium II 266 MHz / egcs 1.1 / Linux 2.0.34 / 128M of ram
Source was compiled with -O3 -funroll-all-loops
-fexpensive-optmizations and -mieee for the Alpha.
Test 1:
The FD code would NOT run correctly without -mieee. We tried
installing a null signal handler for floating point errors,
but that didn't work.
The source code uses very little functions from the math library,
hence the fast math library made no difference here.
The main loop is basically access to 3d arrays, multiplication
and addition.
Options for the Pentium II were the same, except -mieee was not used.
The end result: code on the Alpha ran _slightly_ faster (less than 5%).
Not very inspiring for a 533 Mhz machine. Biggest cause of slowdown
here is the quality of the code generated by egcs 1.1 and
the "-mieee" switch.
Test 2:
The neural network code relies heavily on the exp() function, hence
the fast math library was used. The code ran correctly without
"-mieee" on the Alpha.
Penium II 266 Alpha 533
Timings: 19.83 sec 14.313 sec (28% faster)
19.83 sec 20.050 sec [no fast math library]
Conclusion: unless you use functions from optimized BLAS libraries
or code everything in assembler, under the egcs 1.1 / Linux combination,
a Pentium II machine running at similar clock speeds will easily
outrun an Alpha machine.
The fast math library for the Alpha can be obtained from:
http://people.frankfurt.netsurf.de/Joachim.Wesner/
--
Conrad Sanderson - Microelectronic Signal Processing Laboratory
Griffith University, Queensland, Australia
http://spl.me.gu.edu.au [ under construction ]
next prev parent reply other threads:[~1998-11-11 5:00 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-06 5:00 Alpha's floating point performance Vladimir Filkov
1998-11-07 5:00 ` C.Simmendinger
1998-11-07 5:00 ` Nick Manka
1998-11-07 5:00 ` Greg Lindahl
1998-11-07 5:00 ` Kerstin Hoef-Emden
1998-11-09 5:00 ` Adam C. Powell, IV
1998-11-09 5:00 ` Tracy R Reed
1998-11-09 5:00 ` Adam C. Powell, IV
1998-11-10 5:00 ` Adam C. Powell, IV
1998-11-10 5:00 ` bmeyer
1998-11-10 5:00 ` IX Corp.
1998-11-17 5:00 ` Randall Parker
1998-11-17 5:00 ` Joachim Wesner
1998-11-18 5:00 ` Randall Parker
1998-11-18 5:00 ` Peter Mardahl
1998-11-19 5:00 ` Ian Tester
1998-11-19 5:00 ` Peter Mardahl
1998-11-19 5:00 ` Robert Harley
1998-11-19 5:00 ` Andreas Krall
1998-11-19 5:00 ` Toon Moene
[not found] ` <199811200036.AA23893@tesla.EECS.Berkeley.EDU>
1998-11-20 5:00 ` Ian Tester
1998-11-20 5:00 ` Ian Tester
1998-11-21 5:00 ` Alpha's floating point performance -> single vs. double Joachim Wesner
1998-11-23 5:00 ` Alpha's floating point performance Jack W. Crenshaw
1998-11-23 5:00 ` Peter Mardahl
1998-11-24 5:00 ` Jack W. Crenshaw
1998-11-24 5:00 ` Olaf Schnapauff
1998-11-25 5:00 ` Jack W. Crenshaw
1998-11-25 5:00 ` Aaron Spink
1998-11-25 5:00 ` Jack W. Crenshaw
1998-11-23 5:00 ` H.W. Stockman
1998-11-11 5:00 ` Kerstin Hoef-Emden
1998-11-13 5:00 ` Phil
1998-11-13 5:00 ` Kerstin Hoef-Emden
1998-11-13 5:00 ` Murx
1998-11-13 5:00 ` Joachim Wesner
1998-11-13 5:00 ` Murx
1998-11-13 5:00 ` Murx
1998-11-11 5:00 ` H.W. Stockman
1998-11-11 5:00 ` Greg Lindahl
1998-11-09 5:00 ` Doug Rosser
1998-11-10 5:00 ` bxfqoxog
1998-11-10 5:00 ` energized
1998-11-11 5:00 ` bmeyer
1998-11-11 5:00 ` Integer performance (was Re: Alpha's floating point performance) S S Sturrock
1998-11-12 5:00 ` Murx
1998-11-11 5:00 ` Conrad Sanderson [this message]
1998-11-11 5:00 ` Alpha's floating point performance Greg Lindahl
1998-11-11 5:00 ` Conrad Sanderson
1998-11-15 5:00 ` Andy Isaacson
1998-11-16 5:00 ` Murx
1998-11-16 5:00 ` Joachim Wesner
1998-11-16 5:00 ` Murx
1998-11-16 5:00 ` Murx
1998-11-17 5:00 ` Joachim Wesner
1998-11-17 5:00 ` Murx
1998-11-17 5:00 ` Murx
1998-11-27 5:00 ` Anders Blicher Petersen
1998-11-16 5:00 ` Vinhthuy Phan
1998-11-16 5:00 ` Murx
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