Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: harley@pauillac.inria.fr (Robert Harley)
Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
Date: 1997/03/10	[thread overview]
Message-ID: <5g120v$312@news-rocq.inria.fr> (raw)


henley <henley@tonys.ecology.umn.edu> writes:
>Zlatko Calusic wrote:
>>henley <henley@tonys.ecology.umn.edu> writes:
>>>Dell 133Mhz Pentium, NT4.0       :    34 Mflops/s
>>>Dec 333Mhz 21164, Digital Unix   :    51 Mflops/s
>>>Dell 200Mhz ppro (256k cache)    :    67 Mflops/s
>>>Dell 200Mhz dual ppro            :   109 Mflops/s
>>486DX2/66 Linux 2.0.29           :     4 Mflops/s
>>Sun Ultra 1 143Mhz Solaris 2.5.1 :    32 Mflops/s
>
>I think my code is especially sensitive to fast cache / memory, because
>it is an example of code for which a pentium pro beats a fast alpha!

Henley, I D/Led your source code.  The first file to come over the
wire was arith.c so I looked over it while the rest was coming in.
The reason for it being so slow on Alpha was obvious!

You have written your code for memory-op oriented machines like the
Intel chips.  The Alpha is a register machine so you just have to tell
the compiler when it can keep things in registers.  It took a few
minutes to put "const" in front of the src arguments in arith.c and
CG_arith.c, then "gcc -O4 -lm hybmc_all.c; a.out" gave:

266MHz Alpha:   91 Mflops
500MHz Alpha:   163 Mflops

It looks like the latter would beat a triple PPro if such a thing
existed ;)  These numbers are still at the bottom end of what the
machines typically deliver, so it is likely that much more could be
done to optimise your code for Alpha...

NB: using the compiler switches that Zlatko suggested adds another few
    Mflops but I don't like using flags such as -ffast-math which
    purposely break ANSI and IEEE standards in the pursuit of speed.

Topic for a wider discussion:

Why do people so frequently write code with an Intel model (or
whatever) in mind, then compile it on Alpha without even putting in
the slightest effort to adapt it and then claim that their CPU can
beat an Alpha?  I have seen this several times and in each case that
source was available it was trivial to make even a medium Alpha win by
a wide margin.

Presumably this happens to other way around too i.e., people write
code assuming that lots of big registers are available and then it
crawls when naively ported to an Intel processor.

Does anyone know of any (source) code on which a PPro *really* can beat
an Alpha at, say, >= 366MHz?  (PS: are slower Alphas still for sale?)

Bye,
  Rob.
     .-.                     Robert.Harley@inria.fr                    .-.
    /   \           .-.        "Dances with bits"       .-.           /   \
   /     \         /   \       .-.     _     .-.       /   \         /     \
  /       \       /     \     /   \   / \   /   \     /     \       /       \
 /         \     /       \   /     `-'   `-'     \   /       \     /         \
            \   /         `-'                     `-'         \   /
             `-'         Hit me with those laser beams.        `-'



             reply	other threads:[~1997-03-10  5:00 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-10  5:00 Robert Harley [this message]
1997-03-10  5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers henley
1997-03-11  5:00   ` Peter Mayne
1997-03-10  5:00     ` H.W. Stockman
1997-03-12  5:00       ` Peter Mayne
1997-03-11  5:00   ` dick'circle-a'buckosoft'dot'com
1997-03-10  5:00 ` henley
1997-03-11  5:00   ` henley
1997-03-12  5:00     ` henley
1997-03-12  5:00     ` Chris Ruemmler
1997-03-13  5:00       ` Paul DeMone
1997-03-14  5:00         ` Chris Ruemmler
1997-03-14  5:00           ` Paul DeMone
1997-03-14  5:00       ` Peter Mayne
1997-03-14  5:00         ` William J. Burlingame
1997-03-14  5:00         ` Chris Ruemmler
1997-03-14  5:00           ` H.W. Stockman
1997-03-14  5:00     ` Charles Hedrick
1997-03-10  5:00 ` H.W. Stockman
1997-03-13  5:00 ` Geoffrey Welsh
1997-03-15  5:00 ` henley
     [not found]   ` <332b221b.1501158@news.jussieu.fr>
1997-03-16  5:00     ` henley
1997-03-15  5:00 ` Achim Gratz
1997-03-16  5:00 ` henley
1997-03-16  5:00 ` henley
1997-03-17  5:00 ` Peter Mayne
1997-03-17  5:00 ` Achim Gratz
1997-03-17  5:00 ` Paul DeMone
1997-03-17  5:00 ` henley
  -- strict thread matches above, loose matches on Subject: below --
1997-03-12  5:00 Robert Harley
1997-03-12  5:00 ` henley
1997-03-13  5:00   ` Loesche
1997-03-15  5:00     ` Martin T. Griffin
1997-03-16  5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
1997-03-16  5:00   ` henley
1997-03-17  5:00     ` Ben Myers
1997-03-06  5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers henley
1997-03-09  5:00 ` Zlatko Calusic
1997-03-09  5:00   ` henley
1997-03-11  5:00     ` Mike Greaves
1997-03-26  5:00       ` James Mansion
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