Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
@ 1997-03-12  5:00 Robert Harley
  1997-03-12  5:00 ` henley
  1997-03-16  5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
  0 siblings, 2 replies; 41+ messages in thread
From: Robert Harley @ 1997-03-12  5:00 UTC (permalink / raw)



With the new arithmetic functions (emailed to Henley) the figures are:

266MHz Alpha:   101 Mflops
500MHz Alpha:   177 Mflops


Henley Quadling wrote:
>it has a lot of scattering and gathering. I estimate that
>about half the time is spent shifting stuff around in memory.

At least!  The arithmetic routines do 497 Mflops when taken out and
run in isolation on cached data (according to one test on the 500Mhz
machine).


H.Q.:
>Oh, before I forget, someone suggested I change everything
>to "double". [...] It is slower on the pentium.

With doubles, the arithmetic does 520 Mflops but the result reported
by your benchmark falls to 118, presumably because the memory access
is even more dominant.  Or it could be that your benchmark uses a
weird definition of Mflops ;)

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



^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
@ 1997-03-10  5:00 Robert Harley
  1997-03-10  5:00 ` H.W. Stockman
                   ` (11 more replies)
  0 siblings, 12 replies; 41+ messages in thread
From: Robert Harley @ 1997-03-10  5:00 UTC (permalink / 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.        `-'



^ permalink raw reply	[flat|nested] 41+ messages in thread
* A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
@ 1997-03-06  5:00 henley
  1997-03-09  5:00 ` Zlatko Calusic
  0 siblings, 1 reply; 41+ messages in thread
From: henley @ 1997-03-06  5:00 UTC (permalink / raw)



Hi

I have written a portable C code to perform calculations in
Lattice Quantum Chromodynamics. The benchmark I used consists
of 5 iterations of the Hybrid MonteCarlo method, and 
includes all the overhead associated with the full simulation.
The most expensive part of the code is a conjugate gradient
based iterative solver. The lattice used is 8^4, where
the quarks are represented by complex 3 vectors at the
lattice sites, and the gluons are represented by complex
3 dimensional matrices located on the links between lattice
sites. The communication patterns involve nearest-neighbor
interactions, in four dimensions.

The code is portable between any ANSI C compiler, the
Cray T3D (I haven't tried it on the T3E yet), and 
multi-threaded Windows NT. The Windows NT version can
have 1, 2, 4, or 8 threads for multiple CPUs. The T3D
version will work for any number of nodes that is a power
of two. The code is several thousand lines long. 

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

(To be compared with 24 Gflops/s on the CM5 with an
earlier version of the code. I also achieved 10 Gflops/s on a
512 node T3D with the same code as the above simulations, with
the communications done using the SHMEM approach.)

I have put most of my effort into the algorithms, and not
into the numeric routines (yet). If you would like to run this
code on your computer (all it takes is the compilation of a
single file, such as cc -fast -tune ev5 -lm code.c etc, in the 
case of the alpha timings), please contact me. I'll collect the
results and post them. Also, I would very much like to see how
it runs on various multiple CPU windows NT boxes, especially
alpha based machines and quad CPU machines.

Thanks

Henley



^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~1997-03-26  5:00 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-12  5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers 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
  -- strict thread matches above, loose matches on Subject: below --
1997-03-10  5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10  5:00 ` H.W. Stockman
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 ` henley
1997-03-11  5:00   ` dick'circle-a'buckosoft'dot'com
1997-03-11  5:00   ` Peter Mayne
1997-03-10  5:00     ` H.W. Stockman
1997-03-12  5:00       ` Peter Mayne
1997-03-13  5:00 ` Geoffrey Welsh
1997-03-15  5:00 ` Achim Gratz
1997-03-15  5:00 ` henley
     [not found]   ` <332b221b.1501158@news.jussieu.fr>
1997-03-16  5:00     ` henley
1997-03-16  5:00 ` henley
1997-03-16  5:00 ` henley
1997-03-17  5:00 ` henley
1997-03-17  5:00 ` Paul DeMone
1997-03-17  5:00 ` Achim Gratz
1997-03-17  5:00 ` Peter Mayne
1997-03-06  5:00 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox