From: phr@netcom.com (Paul Rubin)
Subject: Re: Alpha vs Pentium II
Date: 1998/06/19 [thread overview]
Message-ID: <phrEut8vv.4C4@netcom.com> (raw)
In-Reply-To: 6me3tn$6c5$1@mamenchi.zrz.TU-Berlin.DE
In article <6me3tn$6c5$1@mamenchi.zrz.TU-Berlin.DE>,
Warner Bruns <bruns@tetibm2.ee.TU-Berlin.DE> wrote:
> Okay, Here are the details:
> The 25 MHz Power chip (as every POWER chip) can execute two
> floating point operations (one add and one multiply) per cycle.
> The Pentium can do one FP-operation.
> This gives a peak performance of 50 MFlops on the IBM
> and 300 MFlop on the Pentium....
>
> I use both these machines every day and see that the pentium
> performs normally about four times as fast as this obsolete IBM,
> **but** for heavy number crunching, my IBM's perform better.
> I have made extensive optimization studies with the
> IBM-compiler, and have found that he can compile my inner loop
> such that the execution needs 19 cycles for 21 floating
> operations.
> ---> So, the speed of this old Lady is probably
> because the compiler is so extraordinary good.
Getting a multiply-add in 2 cycles from the Pentium is extremely
difficult because while the multiplier can give one result per cycle,
there is 3 cycles of latency. Take a look at the vector dot product
assembly code (based on code by Harlan Stockman) in Michael Schmit's
book on Pentium performance optimization to see what kinds of lengths
one must go through to get maximum throughput. You have to keep track
of what is happening at every stage of all three of the Pentium's
pipelines (two integer and one floating point) in order to overlap
operations most efficiently (never stall a pipeline because it's
waiting for another pipeline's result), plus arrange the code very
carefully in order to not run out of registers. This is far too much
to expect of any compiler. It's much simpler on the RS/6000, which
has a MAC instruction and plenty of registers.
Nonetheless, if you're doing a lot of numerical linear algebra or
signal processing on a Pentium, you can get a huge speedup by using
assembly code like that on the inner loops. You might want to modify
your matrix multiplication (etc.) routines to use inline assembly or
make function calls to do the row/column operations.
next prev parent reply other threads:[~1998-06-19 4:00 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <35863291.583249@news.uunet.be>
1998-06-14 4:00 ` Alpha vs Pentium II Albert Wiersch
1998-06-15 4:00 ` Tuan Pham-Dinh
1998-06-15 4:00 ` Stephen Oberski
[not found] ` <01bd98ca$bf016f80$feb730d1@clay.greenvillenc.com>
1998-06-19 4:00 ` Joe Reynolds
1998-06-19 4:00 ` Donald G. Marchlenski
1998-06-15 4:00 ` Courageous
1998-06-14 4:00 ` Mark Arrasmith
1998-06-15 4:00 ` Courageous
1998-06-15 4:00 ` Steve Arons
1998-06-15 4:00 ` Andrew
[not found] ` <35864C02.11A4@holyrood.ed.ac.uk>
[not found] ` <w4ohg1lz88k.fsf@irtnog.org>
1998-06-18 4:00 ` Huisman G
1998-06-15 4:00 ` Joachim Wesner
1998-06-17 4:00 ` Toshinao Ishii
1998-06-15 4:00 ` Mark Arrasmith
1998-06-15 4:00 ` Rick van der Linde
1998-06-15 4:00 ` Courageous
1998-06-15 4:00 ` Mark Arrasmith
1998-06-15 4:00 ` Mark D. Dewing
[not found] ` <m31zspckq0.fsf@emlab2.nmsu.edu>
1998-06-23 4:00 ` Xtacy
1998-06-24 4:00 ` Kristofer Coward
1998-06-25 4:00 ` Dale Martin
1998-07-01 4:00 ` Georg Schwarz
1998-06-15 4:00 ` BadlandZ
1998-06-15 4:00 ` Martin Kahlert
1998-06-15 4:00 ` Bill Simpson
1998-06-15 4:00 ` Gerhard Niklasch
1998-06-15 4:00 ` Toon Moene
[not found] ` <6m3hr4$40e$1@otis.netspace.net.au>
1998-06-15 4:00 ` His Holiness the Reverend Doktor Xenophon Fenderson, the Carbon(d)ated
1998-06-17 4:00 ` Warner Bruns
1998-06-17 4:00 ` Courageous
1998-06-18 4:00 ` Toon Moene
1998-06-18 4:00 ` Jean-Marc Saffroy (GTM)
1998-06-18 4:00 ` Jochem Spohr
1998-06-19 4:00 ` NiXiE
1998-06-19 4:00 ` Warner Bruns
1998-06-19 4:00 ` Paul Rubin [this message]
1998-06-19 4:00 ` NiXiE
1998-06-20 4:00 ` Christopher Browne
1998-06-19 4:00 ` Peter Mardahl
1998-06-20 4:00 ` Kari Seppanen
1998-06-22 4:00 ` S S Sturrock
1998-06-22 4:00 ` Tom Payne
1998-06-23 4:00 ` S S Sturrock
1998-06-23 4:00 ` Tom Payne
1998-06-23 4:00 ` Joachim Wesner
1998-06-24 4:00 ` Georg Acher
1998-06-24 4:00 ` Arun Sharma
1998-06-24 4:00 ` Toon Moene
1998-06-24 4:00 ` S S Sturrock
1998-06-22 4:00 ` Ian
1998-06-22 4:00 ` Jochem Spohr
1998-06-25 4:00 ` Matt Nelson
1998-06-25 4:00 ` James D. Freels
1998-06-25 4:00 ` Matt Nelson
1998-06-25 4:00 ` Paul Rubin
1998-06-27 4:00 ` Martin H�y
1998-06-27 4:00 ` Joachim Wesner
1998-06-29 4:00 ` Christian Hasse
1998-06-25 4:00 ` Robert Harley
1998-06-25 4:00 ` Matt Nelson
1998-06-26 4:00 ` Toon Moene
1998-06-26 4:00 ` Matt Nelson
1998-06-28 4:00 ` Matt Kennel
1998-06-26 4:00 ` Azira
1998-06-26 4:00 ` Gary Rumble
1998-06-26 4:00 ` Martin Kahlert
1998-06-26 4:00 ` Ewald R. de Wit
1998-06-28 4:00 ` Matt Kennel
1998-06-26 4:00 ` Martin Kahlert
1998-06-26 4:00 ` Eric Frey
1998-06-26 4:00 ` Matt Nelson
1998-06-15 4:00 ` Mark Arrasmith
1998-06-15 4:00 ` Albert Wiersch
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