* 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-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-04-10 4:00 ` Achim Gratz
1 sibling, 1 reply; 16+ messages in thread
From: henley @ 1997-03-28 5:00 UTC (permalink / raw)
Silly me! I forgot about the 16 node T3E runs!!
Notice that the 16 node T3E run is more efficient
than the 4 node one... this is because the 16 node
run had a smaller data set on each node, so that
the cache is more effective....
Cray T3E (16x375 21164, 8K L1, 96K L2) :1338 (84*16)
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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
1997-03-28 5:00 ` henley
@ 1997-03-31 5:00 ` Ling Wang
1997-03-31 5:00 ` henley
0 siblings, 1 reply; 16+ messages in thread
From: Ling Wang @ 1997-03-31 5:00 UTC (permalink / raw)
henley wrote:
>
> Silly me! I forgot about the 16 node T3E runs!!
> Notice that the 16 node T3E run is more efficient
> than the 4 node one... this is because the 16 node
> run had a smaller data set on each node, so that
> the cache is more effective....
>
> Cray T3E (16x375 21164, 8K L1, 96K L2) :1338 (84*16)
> Cray T3E (4x375MHz 21164, 8K L1, 96K L2) : 317 (79*4)
T3E is either 300MHZ or 450MHZ
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
1997-03-31 5:00 ` Ling Wang
@ 1997-03-31 5:00 ` henley
0 siblings, 0 replies; 16+ messages in thread
From: henley @ 1997-03-31 5:00 UTC (permalink / raw)
Ling Wang wrote:
>
> henley wrote:
> >
> > Silly me! I forgot about the 16 node T3E runs!!
> > Notice that the 16 node T3E run is more efficient
> > than the 4 node one... this is because the 16 node
> > run had a smaller data set on each node, so that
> > the cache is more effective....
> >
> > Cray T3E (16x375 21164, 8K L1, 96K L2) :1338 (84*16)
> > Cray T3E (4x375MHz 21164, 8K L1, 96K L2) : 317 (79*4)
>
> T3E is either 300MHZ or 450MHZ
Oh? I wouldn't know... these results were sent to me
via email. I was hoping the T3E would have a L3 cache,
but alas no.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Final results of portable benchmark for single, SMP and MPP computers
1997-03-28 5:00 Final results of portable benchmark for single, SMP and MPP computers henley
1997-03-28 5:00 ` henley
@ 1997-04-10 4:00 ` Achim Gratz
1 sibling, 0 replies; 16+ messages in thread
From: Achim Gratz @ 1997-04-10 4:00 UTC (permalink / raw)
henley <henley@tonys.ecology.umn.edu> writes:
> P6-200/256K Asus P6NP5 Linux 2.0.18 : 67
Could someone please tell me the compiler version and flags used to
get this number? 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. Is there
some obvious configuration difference (like 50ns DRAM)?
Achim Gratz.
--+<[ It's the small pleasures that make life so miserable. ]>+--
WWW: http://www.inf.tu-dresden.de/~ag7/{english/}
E-Mail: gratz@ite.inf.tu-dresden.de
Phone: +49 351 463 - 8325
^ 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-11 4:00 Robert Harley
@ 1997-04-12 4:00 ` Achim Gratz
1997-04-12 4:00 ` henley
1 sibling, 0 replies; 16+ messages in thread
From: Achim Gratz @ 1997-04-12 4:00 UTC (permalink / raw)
harley@pauillac.inria.fr (Robert Harley) writes:
> 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.
Achim Gratz.
--+<[ It's the small pleasures that make life so miserable. ]>+--
WWW: http://www.inf.tu-dresden.de/~ag7/{english/}
E-Mail: gratz@ite.inf.tu-dresden.de
Phone: +49 351 463 - 8325
^ 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
1 sibling, 0 replies; 16+ messages in thread
From: henley @ 1997-04-12 4:00 UTC (permalink / raw)
Robert Harley wrote:
> 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.
I don't think he is a fan of Intel based systems, Rob.
> 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
You have managed to get even more performance out of the code? Wow!
Actually, I am working on a new version..... a new algorithm, and this
time it won't be as ugly! ;-) It should run more efficiently than the
last
one.... it is nearly done.
I'll post URL's etc when it is completed.
^ 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-12 4:00 Robert Harley
@ 1997-04-12 4:00 ` Jeffrey Potoff
1997-04-13 4:00 ` henley
` (3 subsequent siblings)
4 siblings, 0 replies; 16+ messages in thread
From: Jeffrey Potoff @ 1997-04-12 4:00 UTC (permalink / raw)
Robert Harley wrote:
>
> >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,
Is there any chance that you could share some of your speed secrets ?
Jeff
^ 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
@ 1997-04-13 4:00 ` henley
1997-04-13 4:00 ` Achim Gratz
` (2 subsequent siblings)
4 siblings, 0 replies; 16+ messages in thread
From: henley @ 1997-04-13 4:00 UTC (permalink / raw)
Achim Gratz wrote:
> Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:
>
> > Is there any chance that you could share some of your speed
> secrets ?
>
> You can have a look at his fast routines for QCD. It's loop
> unrolling
> and software pipelining as well as clever reordering to reuse data
> as
> much as possible. The core routines of the QCD benchmark are
> latency
> rather than bandwith limited on many machines, so you can speed it
> up
> tremendously by pipelining and/or prefetching.
This is correct.... I was wondering about how to speed things up even
more.
When I made the routines on the CM5 (in assembly level CDPEAC),
I stored the data in such a way as to optimize for speed on the vector
units.
So the SU(3) matrices and vectors (the basic "objects" in the QCD code)
were not stored in one place. Do you know what I mean? I "vectorized
over matrix multiplications", if you understand what I am saying. Rob
Harley
increased the speed of the QCD routines quite a lot, but he was still
constrained by the basic structure I imposed when I wrote this first
portable version of the code. I was thinking that perhaps storing the
matrices
and vectors differently as I did on the CM5, it could be possible to
efficiently "strip-mine" the data a la CM5. It may be that there are
not enough registers to do this though. I used to use all 128 registers
on
the CM5 in my CDPEAC routines!! There certainly are not enough
"registers"
on Intel based computers. Does anyone know if the Intel fpu will ever
progress beyond the Mickey Mouse 7-level stack disaster?
These changes are not related to what I have been working on recently,
BTW. My recent thrust has been to reduce the need to call the data
shifting routines nearly as often.
Oh, one other thing. The routines in this code can be made very
efficient
through the use of combined mult-add instructions. Unfortunately, I
understand that the Alpha does not have such a thing... which is a pity.
Is this true?
A combined load-mult-add instruction would be perfect, 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-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
4 siblings, 0 replies; 16+ messages in thread
From: Achim Gratz @ 1997-04-13 4:00 UTC (permalink / raw)
Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:
> Is there any chance that you could share some of your speed secrets ?
You can have a look at his fast routines for QCD. It's loop unrolling
and software pipelining as well as clever reordering to reuse data as
much as possible. The core routines of the QCD benchmark are latency
rather than bandwith limited on many machines, so you can speed it up
tremendously by pipelining and/or prefetching.
Achim Gratz.
--+<[ It's the small pleasures that make life so miserable. ]>+--
WWW: http://www.inf.tu-dresden.de/~ag7/{english/}
E-Mail: gratz@ite.inf.tu-dresden.de
Phone: +49 351 463 - 8325
^ 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
` (2 preceding siblings ...)
1997-04-13 4:00 ` Achim Gratz
@ 1997-04-14 4:00 ` Jeffrey Potoff
1997-04-15 4:00 ` Achim Gratz
4 siblings, 0 replies; 16+ messages in thread
From: Jeffrey Potoff @ 1997-04-14 4:00 UTC (permalink / raw)
Achim Gratz wrote:
>
> Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:
>
> > Is there any chance that you could share some of your speed secrets ?
>
> You can have a look at his fast routines for QCD. It's loop unrolling
> and software pipelining as well as clever reordering to reuse data as
> much as possible. The core routines of the QCD benchmark are latency
> rather than bandwith limited on many machines, so you can speed it up
> tremendously by pipelining and/or prefetching.
>
I was under the impression that the compilers were doing this for
you when you ran the -O5 flag in f90 (loop unrolling and
software pipelining). Maybe I'm being rather naive about this,
but unless you've written terrible code, is there much to be
gained by manually unrolling all the loops instead of letting the
compiler do it for you ?
Jeff
^ 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
` (3 preceding siblings ...)
1997-04-14 4:00 ` Jeffrey Potoff
@ 1997-04-15 4:00 ` Achim Gratz
4 siblings, 0 replies; 16+ messages in thread
From: Achim Gratz @ 1997-04-15 4:00 UTC (permalink / raw)
Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu> writes:
> I was under the impression that the compilers were doing this for
> you when you ran the -O5 flag in f90 (loop unrolling and
> software pipelining). Maybe I'm being rather naive about this,
> but unless you've written terrible code, is there much to be
> gained by manually unrolling all the loops instead of letting the
> compiler do it for you ?
It helps with dumb compilers. It helps with smart compilers too, if
you know more than the compiler can possibly know. For instance if
you limit the lifetime of temporaries by putting them in their own
scope, the compiler may get the message that there is no dependence to
other iterations of the loop and optimize more aggressively. The code
I commented on was written in C, where there are much weaker
guarantees about aliasing than FORTRAN provides. Compilers (for RISC
machines, anyway) are pretty smart about unrolling these days, you'll
be hard pressed to find an example where you can outdo the compiler
unless it didn't grok the independence of iterations. If you find
that your compilers doesn't pipeline as much as you wish even if you
nudge it by reformulating the source, you have only assembler and m4
as last ressorts.
Achim Gratz.
--+<[ It's the small pleasures that make life so miserable. ]>+--
WWW: http://www.inf.tu-dresden.de/~ag7/{english/}
E-Mail: gratz@ite.inf.tu-dresden.de
Phone: +49 351 463 - 8325
^ 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