Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Final results of portable benchmark for single, SMP and MPP computers
@ 1997-03-28  5:00 henley
  1997-03-28  5:00 ` henley
  1997-04-10  4:00 ` Achim Gratz
  0 siblings, 2 replies; 16+ messages in thread
From: henley @ 1997-03-28  5:00 UTC (permalink / raw)



Hi!

Here are the final results for the benchmark that many
people have run on their computer systems. The code in
all cases produces the same results, but there are three
main versions:

- ANSI C version
- Multithreaded SMP NT version (2, 4, or 8 threads)
- Cray T3D/T3E version (#nodes = 2^n, where n > 0)

The C code also has a version which works well on
non-Intel machines (i.e., assumes many fp registers).
The code is very fp and memory intensive. Rob Harley
rewrote the critical routines for the RISC version,
and his latest tweaks are only reflected in the
results for his 500MHz Alpha, and the T3E. Only a 
single CPU was used for the SGI run... it would
have to be ported for that system, but I do not
have access to one, do I couldn't do it.

The code is a full QCD code, which performs 5 iterations
of the Hybrid Monte Carlo method on a 8^4 lattice,
with dynamical staggered quarks.

I am sorry I didn't also collect all the important
information, such as cache/memory details (which
are obviously important). I am working on a 
completely new algorithm, which will be easier to
use, and will also be more portable to other systems.
Thanks to everyone who sent me the information!

All the following machines produced the same
output:

                                            Mflops

Cray T3E (4x375MHz 21164, 8K L1, 96K L2)  : 317 (79*4)
HP K460 1-way (180Mhz PA-8000)            : 260
tweaked code on 500MHz Alpha              : 209
quad ppro 200Mhz/512KB                    : 205 (52*4)
500MHz Alpha (21164)                      : 177
400Mhz Alpha(feedback-driven-optimization): 173
SGI Origin2000 (single CPU)               : 148
dual ppro 233MHz/512K                     : 125 (63*2)
SGI Origin 200, 180 MHz, 1 MB L2          : 123 
Alpha 433 Mhz (21164)(Linux)              : 113
333MHz Alpha (21164)                      : 113
Dell 200Mhz dual ppro (256k cache)        : 109 (55*2)
266MHz Alpha (21164)                      : 101
167 MHz Sun Ultra 1                       :  83
233 MHz VMS/Alpha (21064A)                :  68
Same ppro2, but on single CPU             :  67 
P6-200/256K Asus P6NP5 Linux 2.0.18       :  67
single-PPro 180 Mhz                       :  58 
Dell p133c (512k cache)                   :  34
Sun Ultra 1 143Mhz Solaris 2.5.1          :  32
PowerMac 7100/66 (66mhz) 256K L2 (MacOS)  :  28
Sun SS20/61 (SuperSPARC, 50/60, 1M+20/16) :  25
Cray T3D (1 node)                         :  24 
PowerMac 7100/66 (66mhz) 256K L2 (Linux)  :  19
Vaxstation 4000/90, VMS 6.2               :  12
486DX2/66 Linux 2.0.29                    :   4
4 processor(40mhz) SUN 690 (1 CPU)        :   3
Sinclair ZX-81                            :   0

It is not easy to compare the Cray T3E (4 nodes) results
with the others, since the subgrid size on each node
may be different. Of course, imagine the T3E running this
code on 2048 nodes.... on a much larger lattice, 
of course.

cheers

Henley



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
@ 1997-04-11  4:00 Robert Harley
  1997-04-12  4:00 ` Achim Gratz
  1997-04-12  4:00 ` henley
  0 siblings, 2 replies; 16+ messages in thread
From: Robert Harley @ 1997-04-11  4:00 UTC (permalink / raw)



Achim Gratz <gratz@ite.inf.tu-dresden.de> writes:
>>henley <henley@tonys.ecology.umn.edu> writes:
>> P6-200/256K Asus P6NP5 Linux 2.0.18       :  67
>[...] I'm totally at loss, I've finally managed to get my
>hands on a PPro box, but the best I got out of it is 47
>[...]

I pity you dude.
Here are some numbers for this benchmark on real computers (using the
RISC version of the code):

  DEC Alpha 266 MHz    128 Mflops
  DEC Alpha 500 MHz    218 Mflops
  
-- Rob.



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
@ 1997-04-12  4:00 Robert Harley
  0 siblings, 0 replies; 16+ messages in thread
From: Robert Harley @ 1997-04-12  4:00 UTC (permalink / raw)



henley <henley@tonys.ecology.umn.edu> writes:
>I don't think he is a fan of Intel based systems, Rob.

Well, I'm a fan of fast systems that help get my work done.
My favorite manufacturer varies from year to year but it's safe to say
that it has never been Intel and marketing gimmicks like MMX are not
likely to change that!


>Actually, I am working on a new version..... a new algorithm

Great!

-- Rob.



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
@ 1997-04-12  4:00 Robert Harley
  1997-04-12  4:00 ` Jeffrey Potoff
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Robert Harley @ 1997-04-12  4:00 UTC (permalink / raw)



>Achim Gratz <gratz@ite.inf.tu-dresden.de> wrote:
>> I pity you dude.
>
>The pity is not on me, since these are not my systems.  Also they have
>such dismal memory performance that there must be something very wrong
>with the setup or the hardware.  I'll have the owner look into it.

Sorry, I got a bit carried away from having doubled the speed of a
different piece of code by tuning it for Alpha (Harlan Stockman's
fluid flow program that he mentioned here recently).

-- Rob.



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
@ 1997-04-15  4:00 Robert Harley
  0 siblings, 0 replies; 16+ messages in thread
From: Robert Harley @ 1997-04-15  4:00 UTC (permalink / raw)



Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:
>Rob,
>    Is there any chance that you could share some of your speed secrets ?

Secrets?  Ahem, well there aren't any really.

I suppose it just requires believing that any piece of code can be
sped up and futzing around with it until you can't possibly squeeze
any more out of it, then step back for a coffee break and think of
another couple of tricks!

Of course the first thing to do is to look for algorithmic improvements.
After that you've get to give your compiler enough information to
optimise the program well.  A good compiler can do plenty of great
stuff as long as it knows it's allowed to ;)

So stick "static" in front of functions that don't need to be
exported, put "const" qualifiers wherever they are valid, replace
small arrays with a few variables if you can etc.  Also have some idea
of the workings of the chip you're targetting.  On Alpha rewrite
locally to try to keep two threads going and to avoid dependencies
between successive expressions.  For instance to double a f.p. number
choose between x *= 2.0 and x += x depending on whether the multiplier
or the adder is likely to be free.  Replace ints by longs, reduce branches...

Declare functions with stuff like this:

static int Collide
  ( float *const*const*const*ff, [...]
  );

Change this:

      for(rho[0]=0.0,i=0; i<NVELOC; i++) rho[0] += f[i];

into this:

      rho0 = f0+f1+(f2+f3)+(f4+f5+(f6+f7))+f8;

and so on.  Avoid getting bogged down fiddling with stuff the compiler
definitely ought to do and worry instead about optimisations that are
likely to be just out of its reach.  Of course, concentrate on the
parts that take a significant chunk of the run-time and compile with
max optimisation.  Recently I've been using "gcc -O4 -funroll-loops"
and "cc -O5 -tune ev5 -migrate -std1".

Common sense, really.

Pick up 5% here and 10% there until it starts adding up.  I think the
QCD code started at 51 Mflops at 333MHz, it's now doing 131 Mflops at
266 MHz (and 224 at 500).  The fluid flow test case went from 41mins
to 17.5.

-- Rob.



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

end of thread, other threads:[~1997-04-15  4:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-28  5:00 Final results of portable benchmark for single, SMP and MPP computers henley
1997-03-28  5:00 ` henley
1997-03-31  5:00   ` Ling Wang
1997-03-31  5:00     ` henley
1997-04-10  4:00 ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
1997-04-11  4:00 Robert Harley
1997-04-12  4:00 ` Achim Gratz
1997-04-12  4:00 ` henley
1997-04-12  4:00 Robert Harley
1997-04-12  4:00 Robert Harley
1997-04-12  4:00 ` Jeffrey Potoff
1997-04-13  4:00 ` henley
1997-04-13  4:00 ` Achim Gratz
1997-04-14  4:00 ` Jeffrey Potoff
1997-04-15  4:00 ` Achim Gratz
1997-04-15  4:00 Robert Harley

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