* 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
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
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
0 siblings, 1 reply; 41+ messages in thread
From: Zlatko Calusic @ 1997-03-09 5:00 UTC (permalink / raw)
henley <henley@tonys.ecology.umn.edu> writes:
[deleted stuff]
>
> 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
Here are my results. I had to twiddle code a little, especially to get
results out, but nothing big. On Ultra I got negative MFlops out, but
absolute of value was correct :)
Henley:
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
Added:
486DX2/66 Linux 2.0.29 : 4 Mflops/s
Sun Ultra 1 143Mhz Solaris 2.5.1 : 32 Mflops/s
486 is 16MB machine, Ultra is 64MB machine (but that's not important).
On both platforms I used gcc -O4 -funroll-loops -fomit-frame-pointer
-ffast-math -fexpensive-optimizations (that *is* important :).
Thanks for source Henley!
I would like to know, how does these values compare to official?
--
Posted by Zlatko Calusic E-mail: <zcalusic@srce.hr>
-----------------------------------------------------------------------
Faculty of Electrical Engineering and Computer Science, Zagreb, Croatia
10 out of 5 doctors feel it's OK to be skitzo!
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-09 5:00 ` Zlatko Calusic
@ 1997-03-09 5:00 ` henley
1997-03-11 5:00 ` Mike Greaves
0 siblings, 1 reply; 41+ messages in thread
From: henley @ 1997-03-09 5:00 UTC (permalink / raw)
Zlatko Calusic wrote:
>
> henley <henley@tonys.ecology.umn.edu> writes:
>
> [deleted stuff]
> >
> > 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
>
> Here are my results. I had to twiddle code a little, especially to get
> results out, but nothing big. On Ultra I got negative MFlops out, but
> absolute of value was correct :)
>
> Henley:
>
> 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
>
> Added:
>
> 486DX2/66 Linux 2.0.29 : 4 Mflops/s
> Sun Ultra 1 143Mhz Solaris 2.5.1 : 32 Mflops/s
Wow, I didn't know a 486 could run so fast!
> I would like to know, how does these values compare to official?
I don't think so... one would expect the alpha to beat
the ppro.
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!
The conjugate gradient used involves many multiplications and
additions of very small (3 dimensional) complex matrices and vectors.
The vectors used in the calculation are also gathered and scattered
in four dimensions, and the ratio of communication/computation is
quite high too. The other thing perhaps is the use of single
precision... would this make a difference for the alphas? I have
not tried coding different versions of the basic numerical routines,
but it would be very interesting to get the opinion of others
before I do so.
I am hoping that more people will run it on their fast machines (people
who know which compiler switches to use to really make the code sing)
and their pentium pros and send me their timings. Perhaps a fast
alpha with a very large L3 cache would do well.
If anyone else would like the source code, please send me email.
The NT version will run on a quad CPU machine too... Does anyone out
there have a eight-CPU box?? (Is there such a thing?). If you do,
my program would love to start 8 numerical worker threads on it!!
cheers
Henley
^ 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 ` henley
` (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
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-10 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
@ 1997-03-10 5:00 ` henley
1997-03-11 5:00 ` Peter Mayne
1997-03-11 5:00 ` dick'circle-a'buckosoft'dot'com
1997-03-10 5:00 ` H.W. Stockman
` (10 subsequent siblings)
11 siblings, 2 replies; 41+ messages in thread
From: henley @ 1997-03-10 5:00 UTC (permalink / raw)
Robert Harley wrote:
>
> 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
Excellent! As I said, I did not spend any time optimizing the numerical
routines for any machine, I was working on the algorithm. I used to
use register and const keywords, but I thought modern compilers
were beyond that... wow. Thanks for your comments.
Henley
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10 5:00 ` henley
1997-03-10 5:00 ` H.W. Stockman
@ 1997-03-10 5:00 ` henley
1997-03-11 5:00 ` henley
1997-03-13 5:00 ` Geoffrey Welsh
` (8 subsequent siblings)
11 siblings, 1 reply; 41+ messages in thread
From: henley @ 1997-03-10 5:00 UTC (permalink / raw)
Robert Harley wrote:
> 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
For those of you who downloaded the source code, I made the changes
that Robert (thanks!) suggested, so you can ftp them again. There
were a few other points where this would make a big difference,
especially in the shift routines in com.c.
BTW, I wrote the first version of the code in assembly
(CDPEAC) on the CM5 (the assembly routines ran at nearly 100MFlops/node,
which was quite an achievement back in those days), and then moved it
to the T3D. So I did not write it for any machine in particular.
> 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...
Lattice QCD with staggered fermions is notoriously
difficult to get running fast,
because it has a lot of scattering and gathering. I estimate that
about half the time is spent shifting stuff around in memory.
I spent my effort in coming up with an algorithm that minimizes
this "communication". This, afterall, is the key to increased
performance on MPP computers. so, I think the performance numbers
you have given us on your fast alphas are very decent indeed,
for lattice QCD!!
Henley
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10 5:00 ` henley
@ 1997-03-10 5:00 ` H.W. Stockman
1997-03-10 5:00 ` henley
` (9 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: H.W. Stockman @ 1997-03-10 5:00 UTC (permalink / raw)
Robert Harley wrote:
> 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.
Alternatively, why do people so often write code for register-rich
machines, on the assumption that address calculations are very
expensive, when there are so many Intel-based CPUs out there?
Look at the lapack benchmarks -- they typically assume there are
at least 16 free registers.
Just kidding.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-11 5:00 ` Peter Mayne
@ 1997-03-10 5:00 ` H.W. Stockman
1997-03-12 5:00 ` Peter Mayne
0 siblings, 1 reply; 41+ messages in thread
From: H.W. Stockman @ 1997-03-10 5:00 UTC (permalink / raw)
Peter Mayne wrote:
> Modern compilers probably are beyond "register", but not "const". In a
> function argument, const might indicate that a variable can't be
> aliased, which means that the compiler can then make assumptions that it
> couldn't usually make, and optimise accordingly (like load it into a
> register instead of leaving it in memory).
> There was a discussion about aliasing and its affect on code
> optimisation recently in comp.arch.
I'm very interested in this issue, since we have been testing
a code on alpha/SGI/PPro, and I spent the weekend trying to
find fool-proof ways to give the compiler hints about aliasing.
It isn't easy, and I could find few places where I was comfortable
using "const". Putting #pragma optimize(...) around a few
key functions helped just a little, but I got almost the
same effect from declaring some vars static, removing
the few obvious aliases, and converting temporaries
to double in strategic places (when arrays were float) to rely
on ANSI aliasing rules. It is really tough to use dynamic
allocation effectively, and also make it easy on the compiler
to detect functions that will be free from aliasing problems
(OK, I admit I never thought about this that much before,
so maybe it's easier than I thought).
In trolling for hints, I came across several discussions of
the DEC optimizing compilers; it looks like there are options
(or at least plans to implement such options) to search for
global aliasing hints, with varying degrees of agression.
I noticed the SPEC benchmarks are compiled to assume the
ANSI aliasing rules.
> PJDM
> Digital Equipment Corporation (Australia), Canberra, ACT
You should be an expert on this, que no?
^ 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 ` henley
@ 1997-03-11 5:00 ` henley
1997-03-12 5:00 ` henley
` (2 more replies)
0 siblings, 3 replies; 41+ messages in thread
From: henley @ 1997-03-11 5:00 UTC (permalink / raw)
> Robert Harley wrote:
> > 266MHz Alpha: 91 Mflops
> > 500MHz Alpha: 163 Mflops
Rob has pushed this up to 177 Mflops by rewriting some of the
numerical routines. The routines he has written produce faster
code on alphas (and presumably on RISC cpus in general),
but slower on Intel CPUs. So I left both versions in... you
may compile whichever version you like.
As an aside, I have noticed that attempting to optimize code
by hand on compilers such as VC++ for Intel, I often came up
with slower code... heh! None of the changes suggested to
me so far have resulted in faster code on the ppro, but the
changes have resulted in huge improvements on the alpha.
Instead of asking me in email if you can download the source
code, you can just go ahead and get it:
ftp tonys.ecology.umn.edu
username: bench
password: mark
The source code is in /QCD, get all of it. There is a readme.
If you are not using multiCPU NT, you need to comment out the
#define SMP_NT line in hybmc.h... and if you want to try
Rob Harley's routines on your RISC CPU, you need to
un-comment-out the #define FAST_VERSION in the same file.
Then compile the single file hybmc_all.c .... yes, it is
ugly, but easy to do: no makefiles! It is in ANSI C, so it
should compile on anything.
The code is very much a beta code, still being developed. I
have put almost all my effort so-far into the development of
the algorithm. It is a full Quantum Chromodynamics simulation
which uses four flavors of quarks (staggered quarks. The
simulation runs on a 8^4 lattice, and runs about 20 mins
on a p133. At the end of the simulation, it reports the
average number of Mflops performed per second. This is a
grand challenge problem, so your input can be very valuable.
And, it is a useful benchmark to compare all your computers,
from the MPP Cray T3D to the quad CPU pentium pro workstation.
Oh, before I forget, someone suggested I change everything
to "double". I was about to say that this does not necessarily
speed up the program, and it also can use too much memory
(try a 64^4 lattice).... but I just went ahead and tried it on
my pentium. It is slower on the pentium. So, what about on
an alpha? I should try it...
If you do run the code, please send me your results. If you
tweak some of the routines (such as Rob Harley did, in
fast_routines.c), then tell me about those too! I'll post
results and useful tips for other programmers. I have also
gotten tips on NT specific stuff, so I will add those too.
Thanks to all who have sent me email.
cheers
Henley
^ 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 ` henley
@ 1997-03-11 5:00 ` Peter Mayne
1997-03-10 5:00 ` H.W. Stockman
1997-03-11 5:00 ` dick'circle-a'buckosoft'dot'com
1 sibling, 1 reply; 41+ messages in thread
From: Peter Mayne @ 1997-03-11 5:00 UTC (permalink / raw)
henley wrote:
> Excellent! As I said, I did not spend any time optimizing the numerical
> routines for any machine, I was working on the algorithm. I used to
> use register and const keywords, but I thought modern compilers
> were beyond that... wow. Thanks for your comments.
Modern compilers probably are beyond "register", but not "const". In a
function argument, const might indicate that a variable can't be
aliased, which means that the compiler can then make assumptions that it
couldn't usually make, and optimise accordingly (like load it into a
register instead of leaving it in memory).
There was a discussion about aliasing and its affect on code
optimisation recently in comp.arch.
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
This was typed by an infinite number of monkeys.
^ 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 ` henley
1997-03-11 5:00 ` Peter Mayne
@ 1997-03-11 5:00 ` dick'circle-a'buckosoft'dot'com
1 sibling, 0 replies; 41+ messages in thread
From: dick'circle-a'buckosoft'dot'com @ 1997-03-11 5:00 UTC (permalink / raw)
Also sprach henley <henley@tonys.ecology.umn.edu> :
>Robert Harley wrote:
>>
>> 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
>Excellent! As I said, I did not spend any time optimizing the numerical
>routines for any machine, I was working on the algorithm. I used to
>use register and const keywords, but I thought modern compilers
>were beyond that... wow. Thanks for your comments.
Actually, modern compilers are more picky about the use of const.
And you are always welcome to use "register" if you think you might
know more about your code then some dumb optimizing compiler.
From another post in this thread:
>quite high too. The other thing perhaps is the use of single
>precision... would this make a difference for the alphas? I have
If you mean the program is currently using single precision, then you
are actually slowing the program down on Intel. x87 (The FPU part)
speaks double and must convert from single.
I can't verify these ramblings as i see no url posted along with this
thread.
dik
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-09 5:00 ` henley
@ 1997-03-11 5:00 ` Mike Greaves
1997-03-26 5:00 ` James Mansion
0 siblings, 1 reply; 41+ messages in thread
From: Mike Greaves @ 1997-03-11 5:00 UTC (permalink / raw)
henley wrote:
>
> The NT version will run on a quad CPU machine too... Does anyone out
> there have a eight-CPU box?? (Is there such a thing?). If you do,
The maximum number of CPU's that Windows NT currently supports is 4.
Intel systems with 16, 32 or even more processors exist (Sequent NUMA
systems, Intel Paragon, etc.) but only run Unix. I understand that
commodity 8 processor Pentium Pro servers are to be available within a
year or so. By then, NT will probably support 8 CPU's.
Mike Greaves
mgreaves@pathcom.com
^ 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 ` H.W. Stockman
@ 1997-03-12 5:00 ` Peter Mayne
0 siblings, 0 replies; 41+ messages in thread
From: Peter Mayne @ 1997-03-12 5:00 UTC (permalink / raw)
H.W. Stockman wrote:
[aliasing discussion elided]
> In trolling for hints, I came across several discussions of
> the DEC optimizing compilers; it looks like there are options
> (or at least plans to implement such options) to search for
> global aliasing hints, with varying degrees of agression.
Of course, this would be much easier in a higher-level-than-C language
where such information is available. C doesn't help a compiler back end
because everything is a pointer/int, so the back end has to assume the
worst.
> I noticed the SPEC benchmarks are compiled to assume the
> ANSI aliasing rules.
I think if they're standard ANSI C, the compiler can't assume otherwise.
Fortran, on the other hand...
> > PJDM
> > Digital Equipment Corporation (Australia), Canberra, ACT
>
> You should be an expert on this, que no?
I wish. There's a lot of things to be expert on, and this isn't one of
my areas. I just listen to the clever people. Ask me about um, er,
something else.
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
This was typed by an infinite number of monkeys.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-11 5:00 ` henley
@ 1997-03-12 5:00 ` henley
1997-03-12 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` Charles Hedrick
2 siblings, 0 replies; 41+ messages in thread
From: henley @ 1997-03-12 5:00 UTC (permalink / raw)
> Instead of asking me in email if you can download the source
> code, you can just go ahead and get it:
>
> ftp tonys.ecology.umn.edu
> username: bench
> password: mark
Or you can grab it from:
http://tonys.ecology.umn.edu/QCD/
(qcd.zip contains all the files!)
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
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 ` Peter Mayne
1997-03-14 5:00 ` Charles Hedrick
2 siblings, 2 replies; 41+ messages in thread
From: Chris Ruemmler @ 1997-03-12 5:00 UTC (permalink / raw)
In article <3325AE31.30F5@tonys.ecology.umn.edu>,
henley <henley@tonys.ecology.umn.edu> wrote:
>> Robert Harley wrote:
>> > 266MHz Alpha: 91 Mflops
>> > 500MHz Alpha: 163 Mflops
>
>Rob has pushed this up to 177 Mflops by rewriting some of the
>numerical routines. The routines he has written produce faster
>code on alphas (and presumably on RISC cpus in general),
>but slower on Intel CPUs. So I left both versions in... you
>may compile whichever version you like.
>
I tried your program on a HP K460 1-way (180Mhz PA-8000) and
get 260 Mflops. Given that the processor is running at 180Mhz, this
is 1.4 flops/cycle which is much better than the 500Mhz Alpha
is doing (0.35 flops/cycle).
I used the "#define FAST_VERSION" for this result.
The results looked something like:
Monte Carlo step : 0
Configuration accepted: delta S (= -8.16041) < 0.629393
Monte Carlo step : 1
Configuration accepted: delta S (= -2.63789) < 4.28335
Monte Carlo step : 2
Configuration accepted: delta S (= -1.60239) < 0.676348
Monte Carlo step : 3
Configuration accepted: delta S (= -0.850512) < 0.740717
Monte Carlo step : 4
Configuration accepted: delta S (= -0.517287) < 1.15196
Average CG iterations : 18
Total wall-clock time : 260.91
Flop rate (Mflops/s) : 260.414
Psi_bar_psi_even : 0.395264
Psi_bar_psi_odd : 0.373128
Fermion energy : 0.679193
Fermion pressure : -0.706835
Fermion action : 1.49866
Space-space plaquette : 1.87722
Space-time plaquette : 1.88161
Average Plaquette : 0.212186 +/- 0.191037
Average psi_bar_psi_E : 0.395264 +/- 0
com_dur: 0.000000
--Chris
My own views, not HPs
^ permalink raw reply [flat|nested] 41+ messages in thread
* 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-12 5:00 Robert Harley
@ 1997-03-12 5:00 ` henley
1997-03-13 5:00 ` Loesche
1997-03-16 5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
1 sibling, 1 reply; 41+ messages in thread
From: henley @ 1997-03-12 5:00 UTC (permalink / raw)
Robert Harley wrote:
>
> With the new arithmetic functions (emailed to Henley) the figures are:
>
> 266MHz Alpha: 101 Mflops
> 500MHz Alpha: 177 Mflops
And another one:
333MHz Alpha: 113 Mflops (i.e., about the same as the dual ppro)
I am still waiting for others to send me their results (hint, hint!)
Are there any pentium [pro] experts out there? We need you, our
dual pentium pro has been edged out slightly by the 333MHz alpha, and
looks silly compared to the 500MHz beast! Have a look at the routine
below, and tell me if you can get it to run faster. We should
try to stick with C code, so that it remains portable. But, hey,
if you would like to throw some inline assembly my way, I won't
complain! You will get credit in this public domain code...
(Any ideas to make this go faster on any other CPU would also
be greatly appreciated, although Rob Harley's version is a good
deal faster on an Alpha)
In the meantime, I will work some more on the NT specific stuff,
to try reduce some of the overhead. On a 6^4 lattice, using dual
CPUs makes an almost 100% improvement in speed, but not so
for the 8^4 case.
Anyone have a dual 500MHz Alpha running NT?? heh...
void calc_UdagV(const float *src_U, const float *src_V, float *dest_V)
{
int index;
for (index=0; index<sl_node_vol; index++)
{
dest_V[0] = src_U[3*0+0]*src_V[0] + src_U[3*0+0+9]*src_V[0+3]+
src_U[3*1+0]*src_V[1] + src_U[3*1+0+9]*src_V[1+3]+
src_U[3*2+0]*src_V[2] + src_U[3*2+0+9]*src_V[2+3];
dest_V[1] = src_U[3*0+1]*src_V[0] + src_U[3*0+1+9]*src_V[0+3]+
src_U[3*1+1]*src_V[1] + src_U[3*1+1+9]*src_V[1+3]+
src_U[3*2+1]*src_V[2] + src_U[3*2+1+9]*src_V[2+3];
dest_V[2] = src_U[3*0+2]*src_V[0] + src_U[3*0+2+9]*src_V[0+3]+
src_U[3*1+2]*src_V[1] + src_U[3*1+2+9]*src_V[1+3]+
src_U[3*2+2]*src_V[2] + src_U[3*2+2+9]*src_V[2+3];
dest_V[0+3] = src_U[3*0+0]*src_V[0+3] - src_U[3*0+0+9]*src_V[0]+
src_U[3*1+0]*src_V[1+3] - src_U[3*1+0+9]*src_V[1]+
src_U[3*2+0]*src_V[2+3] - src_U[3*2+0+9]*src_V[2];
dest_V[1+3] = src_U[3*0+1]*src_V[0+3] - src_U[3*0+1+9]*src_V[0]+
src_U[3*1+1]*src_V[1+3] - src_U[3*1+1+9]*src_V[1]+
src_U[3*2+1]*src_V[2+3] - src_U[3*2+1+9]*src_V[2];
dest_V[2+3] = src_U[3*0+2]*src_V[0+3] - src_U[3*0+2+9]*src_V[0]+
src_U[3*1+2]*src_V[1+3] - src_U[3*1+2+9]*src_V[1]+
src_U[3*2+2]*src_V[2+3] - src_U[3*2+2+9]*src_V[2];
src_U += SU3_MATRIX_SIZE;
src_V += SU3_VECTOR_SIZE;
dest_V += SU3_VECTOR_SIZE;
}
}
p.s. SU3_MATRIX_SIZE is 18, and SU3_VECTOR_SIZE is 6
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
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 ` Peter Mayne
1 sibling, 1 reply; 41+ messages in thread
From: Paul DeMone @ 1997-03-13 5:00 UTC (permalink / raw)
Chris Ruemmler wrote:
[snip]
>
> I tried your program on a HP K460 1-way (180Mhz PA-8000) and
> get 260 Mflops. Given that the processor is running at 180Mhz, this
> is 1.4 flops/cycle which is much better than the 500Mhz Alpha
> is doing (0.35 flops/cycle).
You got that backwards. The PA-8000 has to get that kind of per
clock performance to be competitive because its clock frequency is so
limited by its trailing edge 0.5 um CMOS process and off-chip caches.
The price of this approach is the need to implement two 128 bit wide
off-chip caches running at 180 MHz and more than a thousand signal and
power connections requiring a chip-on-board packaging/system design.
If you want to compare the 21164 vs the PA-8000 on something other
than benchmarks it is better to compare price/performance and system
implementation cost and complexity. The 21164 is conventionally
packaged and gets its performance with external bus frequencies under
100 MHz while using less power. I very much doubt HP could push the
PA-8000 into the type of high performance, relatively low cost systems
that the 21164 is capable of.
BTW, HP apparently is starting to see the light of the Alpha approach,
supposedly the upcoming PA-8500 is going to have monstrous on chip
caches ;-)
> [snip]
>
> --Chris
> My own views, not HPs
Paul
--
Paul W. DeMone The 801 experiment SPARCed an ARMs race
Kanata, Ontario to put more PRECISION and POWER into
demone@mosaid.com architectures with MIPSed results but
PaulDeMone@EasyInternet.net ALPHA's well that ends well.
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (2 preceding siblings ...)
1997-03-10 5:00 ` henley
@ 1997-03-13 5:00 ` Geoffrey Welsh
1997-03-15 5:00 ` henley
` (7 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: Geoffrey Welsh @ 1997-03-13 5:00 UTC (permalink / raw)
(posted and mailed)
On 10 Mar 1997 13:23:43 GMT, in comp.os.ms-windows.nt.misc,
harley@pauillac.inria.fr (Robert Harley) wrote:
>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.
Because the compiler is supposed to take care of those details. If
you want to control every last detail of the machine code, write in
assembler... or just accept that this is a compromise of writing in a
'portable' high-level language!
The default variable qualifier in C is "auto", i.e. put it in a
register if you can; even "register" is only a recommendation and, if
I take code with too many "register" definitions, an Intel-based
compiler should 'demote' as many of them as necessary... only the
"volatile" qualifier should have absolutely guaranteed performance
(the fact that older MS compilers ignored the keyword entirely
notwithstanding).
Similarly, how frequently accessed constants (which is what I think
you tweaked) are best handled on any given architecture should also be
up to the compiler.
These days programmers seem to be in such a rush to bring features to
market that they don't have time to remove the bugs first; how many
have the time to figure out whether they're saving cycles or wasting
them on umpteen different architectures when using more registers and
increasing the number that must be saved in entry/exit code?!?
---
Geoffrey Welsh, MIS Co-ordinator, InSystems Technologies Inc.: gwelsh@insystems.com
UNSOLICITED ADVERTISING TO THIS ADDRESS IS STRICTLY FORBIDDEN.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-12 5:00 ` henley
@ 1997-03-13 5:00 ` Loesche
1997-03-15 5:00 ` Martin T. Griffin
0 siblings, 1 reply; 41+ messages in thread
From: Loesche @ 1997-03-13 5:00 UTC (permalink / raw)
Hi there,
I ftp'ed the source yesterday and tried it on our SGI Origin2000.
MIPS R10000: 148 MFlops
The code was running on a single CPU @195MHz with 4MB L2 cache.
Compilation command line was
cc -O3 -64 -r10000 -o RISC.opt hybmc_all.c -lm
I used the RISC-improved code.
I did not look into the code much further but guess there is still
some improvement possible by using more aggressive optimization or
tweaking the code.
Did not look into SMP either (the machine has 32 R10000 and 10 GB RAM).
If time permits I will give it a try.
Regards, Ralf
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-12 5:00 ` Chris Ruemmler
1997-03-13 5:00 ` Paul DeMone
@ 1997-03-14 5:00 ` Peter Mayne
1997-03-14 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` William J. Burlingame
1 sibling, 2 replies; 41+ messages in thread
From: Peter Mayne @ 1997-03-14 5:00 UTC (permalink / raw)
Chris Ruemmler wrote:
> I tried your program on a HP K460 1-way (180Mhz PA-8000) and
> get 260 Mflops. Given that the processor is running at 180Mhz, this
> is 1.4 flops/cycle which is much better than the 500Mhz Alpha
> is doing (0.35 flops/cycle).
Can you please define exactly what "much better" means here? Why is 1.4
flops/cycle "much better" than 0.35 flops/cycle?
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
This was typed by an infinite number of monkeys.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-13 5:00 ` Paul DeMone
@ 1997-03-14 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` Paul DeMone
0 siblings, 1 reply; 41+ messages in thread
From: Chris Ruemmler @ 1997-03-14 5:00 UTC (permalink / raw)
In article <3327944D.6ADA@EasyInternet.net>,
Paul DeMone <PaulDeMone@EasyInternet.net> wrote:
>Chris Ruemmler wrote:
>[snip]
>>
>> I tried your program on a HP K460 1-way (180Mhz PA-8000) and
>> get 260 Mflops. Given that the processor is running at 180Mhz, this
>> is 1.4 flops/cycle which is much better than the 500Mhz Alpha
>> is doing (0.35 flops/cycle).
>
> You got that backwards. The PA-8000 has to get that kind of per
> clock performance to be competitive because its clock frequency is so
> limited by its trailing edge 0.5 um CMOS process and off-chip caches.
> The price of this approach is the need to implement two 128 bit wide
> off-chip caches running at 180 MHz and more than a thousand signal and
> power connections requiring a chip-on-board packaging/system design.
>
Again clock frequency is not everything. Look at the IBM Power2. This
was the best performing technical workstation for years yet it only ran
at about 66Mhz-77Mhz. It blew the doors off the competition for most
technical applications. It was also very expensive to make, but that
does not matter so much if the chip excels as it did.
If your clock frequency is 500Mhz, but your design does not allow you
to overcome memory latency (as is the case with the 21164), then you
have problems. Now if your problem fits in the small on-chip caches
of your 500Mhz processor (or in the register set), then the Mhz processor
will win. In real life code, however, most code does not fit in such a
small working set so you need to find ways to overcome the latency (such
as out-of-order execution and non-blocking caches with multiple outstanding
misses). The 21164 does not do a good job at this, but it looks like
the 21264 will do better.
> BTW, HP apparently is starting to see the light of the Alpha approach,
> supposedly the upcoming PA-8500 is going to have monstrous on chip
> caches ;-)
>
Actually I think DEC is starting to see the light of the HP approach
with the 21264! If you look at the design, it looks a lot like the
PA-8000 (out-of-order,larger 2 cycle latency caches, lots of rename
logic, multiple execution units, multiple load/store pipes). I think
you have things backwards :).
--Chris
My own views no HPs
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-14 5:00 ` Peter Mayne
@ 1997-03-14 5:00 ` Chris Ruemmler
1997-03-14 5:00 ` H.W. Stockman
1997-03-14 5:00 ` William J. Burlingame
1 sibling, 1 reply; 41+ messages in thread
From: Chris Ruemmler @ 1997-03-14 5:00 UTC (permalink / raw)
In article <3328F78A.2494@cao.mts.dec.com>,
Peter Mayne <Peter.Mayne@cao.mts.dec.com> wrote:
>Chris Ruemmler wrote:
>> I tried your program on a HP K460 1-way (180Mhz PA-8000) and
>> get 260 Mflops. Given that the processor is running at 180Mhz, this
>> is 1.4 flops/cycle which is much better than the 500Mhz Alpha
>> is doing (0.35 flops/cycle).
>
>Can you please define exactly what "much better" means here? Why is 1.4
>flops/cycle "much better" than 0.35 flops/cycle?
>
1.4 flops/cycle is "much better" than 0.35 flops/cycle in terms of
processor utilization. The 21164 is a 4-way superscalar design that
can execute at most 2 flops/cycle peak, but only gets 0.35 flops/cycle
on this test. The PA-8000 is also a 4-way superscalar design but can
obtain a peak Mflops of 4 flops/cycle and gets 1.4 on this test. So the
21164 is getting 18% efficiency out of its core while the PA-8000 is at
35% effeciency.
Another way to look at it is that the PA-8000 getting much more work
done out of each "tick" of Mhz than the Alpha. I imagine there are
a LOT of "ticks" that go by on the 21164 at 500Mhz where zero work
is retired due to stalls waiting on memory.
It would be interesting if someone posted results for a IBM Power 2
(or Super Power 2), I imagine these might get even better results than
the PA-8000 in terms of efficiency, even though they have slower
clocks (77Mhz and 135Mhz).
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-14 5:00 ` Peter Mayne
1997-03-14 5:00 ` Chris Ruemmler
@ 1997-03-14 5:00 ` William J. Burlingame
1 sibling, 0 replies; 41+ messages in thread
From: William J. Burlingame @ 1997-03-14 5:00 UTC (permalink / raw)
On Fri, 14 Mar 1997 17:00:27 +1000, Peter Mayne
<Peter.Mayne@cao.mts.dec.com> wrote:
>Chris Ruemmler wrote:
>> I tried your program on a HP K460 1-way (180Mhz PA-8000) and
>> get 260 Mflops. Given that the processor is running at 180Mhz, this
>> is 1.4 flops/cycle which is much better than the 500Mhz Alpha
>> is doing (0.35 flops/cycle).
>
>Can you please define exactly what "much better" means here? Why is 1.4
>flops/cycle "much better" than 0.35 flops/cycle?
>--
>PJDM
>Digital Equipment Corporation (Australia), Canberra, ACT
>-------------------------------------------------------------------------------
>These are my opinions, and have nothing to do with Digital.
>This was typed by an infinite number of monkeys.
A flop is a term that means floating point operation. That is, an
operation on a floating point number. Mflop is a mega flop. Some
processors have hardware floating point processors and others have to
emulate the operation in software. The term MIPS is also used to rate
computers. A machine that can do x MIPS means that it can do x mega
instructions per second. Two machines that have the same MIPS rating
may have a different flop rating. GUI based systems do a lot of
floating point operations and the flop rating one important
specification to consider when choosing a system.
---------------------------------------------------------------
NoSpam has been added to my e-mail address to reduce the amount
of spam mail. Delete the NoSpam from my address to send me a
message. <mailto:wjburl@ro.com>
Bill Burlingame
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-14 5:00 ` Chris Ruemmler
@ 1997-03-14 5:00 ` Paul DeMone
0 siblings, 0 replies; 41+ messages in thread
From: Paul DeMone @ 1997-03-14 5:00 UTC (permalink / raw)
Chris Ruemmler wrote:
[snip]
> If your clock frequency is 500Mhz, but your design does not allow you
> to overcome memory latency (as is the case with the 21164), then you
> have problems. Now if your problem fits in the small on-chip caches
> of your 500Mhz processor (or in the register set), then the Mhz processor
> will win. In real life code, however, most code does not fit in such a
> small working set so you need to find ways to overcome the latency (such
> as out-of-order execution and non-blocking caches with multiple outstanding
> misses). The 21164 does not do a good job at this, but it looks like
> the 21264 will do better.
Yes I think processor architects have gotten the message "its the memory
stupid". No doubt the 21264's greatly enhanced system interface is a
harbinger of things to come.
>
> > BTW, HP apparently is starting to see the light of the Alpha approach,
> > supposedly the upcoming PA-8500 is going to have monstrous on chip
> > caches ;-)
> >
> Actually I think DEC is starting to see the light of the HP approach
> with the 21264! If you look at the design, it looks a lot like the
> PA-8000 (out-of-order,larger 2 cycle latency caches, lots of rename
> logic, multiple execution units, multiple load/store pipes). I think
> you have things backwards :).
Good point! I think design trends tend to go around in big circles.
The P7 will probably be like a throwback to the orginal RISC processors:
by going to a VLIW like scheme to throw out all that superscalar logic
overhead, the tough job will be again dropped in the lap of compiler
writers!
>
> --Chris
> My own views no HPs
--
Paul W. DeMone The 801 experiment SPARCed an ARMs race
Kanata, Ontario to put more PRECISION and POWER into
demone@mosaid.com architectures with MIPSed results but
PaulDeMone@EasyInternet.net ALPHA's well that ends well.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-14 5:00 ` Chris Ruemmler
@ 1997-03-14 5:00 ` H.W. Stockman
0 siblings, 0 replies; 41+ messages in thread
From: H.W. Stockman @ 1997-03-14 5:00 UTC (permalink / raw)
Chris Ruemmler wrote:
> It would be interesting if someone posted results for a IBM Power 2
> (or Super Power 2), I imagine these might get even better results than
> the PA-8000 in terms of efficiency, even though they have slower
> clocks (77Mhz and 135Mhz).
I can't comment on this particular code, but a few months back
we benchmarked a float-intensive (comp AND memory) fluid
dynamics program (f77) on a 66 MHz POWER2 and a 200 MHz 604e;
the POWER2 ran the code twice as fast as the 604e (and this
was the POWER2 with the "smaller" 128K L1(D) cache) -- i.e.
was 6 times as efficient per MHz.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-11 5:00 ` henley
1997-03-12 5:00 ` henley
1997-03-12 5:00 ` Chris Ruemmler
@ 1997-03-14 5:00 ` Charles Hedrick
2 siblings, 0 replies; 41+ messages in thread
From: Charles Hedrick @ 1997-03-14 5:00 UTC (permalink / raw)
henley <henley@tonys.ecology.umn.edu> writes:
>> Robert Harley wrote:
>> > 266MHz Alpha: 91 Mflops
>> > 500MHz Alpha: 163 Mflops
I just tried a 167 MHz Sun Ultra 1, and got 61 Mflops. This is with
code I just got, so presumably it has the newest RISC optimizations in
it. These are not current machines: there are now 200 and 250 MHz
Ultras available. Compiled with Sun's C compiler version 4.0, -fast.
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (4 preceding siblings ...)
1997-03-15 5:00 ` henley
@ 1997-03-15 5:00 ` Achim Gratz
1997-03-16 5:00 ` henley
` (5 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: Achim Gratz @ 1997-03-15 5:00 UTC (permalink / raw)
hedrick@geneva.rutgers.edu (Charles Hedrick) writes:
> I just tried a 167 MHz Sun Ultra 1, and got 61 Mflops. This is with
> code I just got, so presumably it has the newest RISC optimizations in
> it. These are not current machines: there are now 200 and 250 MHz
> Ultras available. Compiled with Sun's C compiler version 4.0, -fast.
Try with
`-fast -xO5 -xsafe=mem -xtarget=ultra1/170 -xarch=v8plusa -xrestrict'
and see it jump to 80 MFlop (on the same machine). The original
version comes out at 72 MFlops. Some compilers are better than others
and I found the compilers for Alpha always seem to need more nudging.
But that's beside the point. The code is really ugly (sorry
Mr.Henley). I couldn't find out for instance how to drop in CGS
instead of CG (and I have implemented both before). Is this a
nonlinear CG procedure? And the matrix_matrix_multiply makes me
dizzy. It looks more like a cross product or where are the minusses
coming from? FORTRAN in C, so why don't write it in FORTRAN and get
the better optimizations F77 compilers are entitled to? BTW, this is
an linear algebra benchmark:
%Time Seconds Cumsecs #Calls msec/call Name
15.3 142.91 142.91 513056 0.2785 matrix_matrix_multiply
15.0 140.26 283.17 237792 0.5898 calc_UV_sub_UdagV_add
11.7 109.68 392.85 1000 109.680 update_U
7.8 73.23 466.08 317072 0.2310 calc_UdagV
7.3 68.49 534.57 192000 0.3567 matrix_dag_matrix_multiply
7.3 68.43 603.00 511 133.91 conjugate_gradient
6.7 62.63 665.63 staple_sli
5.5 51.47 717.10 79280 0.6492 calc_UV_sub_UdagV_start
5.4 50.36 767.46 19816 2.5414 D_slash
5.3 49.78 817.24 237792 0.2093 calc_UV_sub_TL_add
3.5 32.59 849.83 97056 0.3358 matrix_dag_matrix_dag_multiply
2.5 23.05 872.88 500 46.10 reunitarize
2.0 18.95 891.83 monte_carlo
The rest is below 2% (fast_routines.c was not used). Now the same for
the "fast RISC" routines:
%Time Seconds Cumsecs #Calls msec/call Name
16.2 138.55 138.55 513056 0.2700 matrix_matrix_multiply
13.5 114.85 253.40 237792 0.4830 calc_UV_sub_UdagV_add
9.2 78.70 332.10 237792 0.3310 calc_UV_sub_TL_add
8.9 75.75 407.85 843200 0.0898 sl_shift
8.5 72.95 480.80 317072 0.2301 calc_UdagV
8.0 68.67 549.47 511 134.38 conjugate_gradient
7.6 64.61 614.08 192000 0.3365 matrix_dag_matrix_multiply
5.3 45.03 659.11 448000 0.1005 scalar_mult_add_matrix
5.0 42.35 701.46 79280 0.5342 calc_UV_sub_UdagV_start
3.9 33.58 735.04 97056 0.3460 matrix_dag_matrix_dag_multiply
3.7 31.56 766.60 staple_sli
2.7 23.03 789.63 500 46.06 reunitarize
2.6 22.48 812.11 79280 0.2836 calc_UV_sub_TL_start
Ooops! Some routines actually got slower by "optimizing" them.
Getting this straight is probably another minute of runtime.
%Time Seconds Cumsecs #Calls msec/call Name
17.4 143.99 143.99 513056 0.2807 matrix_matrix_multiply
13.8 114.10 258.09 237792 0.4798 calc_UV_sub_UdagV_add
9.4 77.36 335.45 843200 0.0917 sl_shift
8.7 71.92 407.37 317072 0.2268 calc_UdagV
8.1 67.19 474.56 511 131.49 conjugate_gradient
7.9 65.14 539.70 192000 0.3393 matrix_dag_matrix_multiply
6.4 52.98 592.68 237792 0.2228 calc_UV_sub_TL_add
5.2 43.26 635.94 79280 0.5457 calc_UV_sub_UdagV_start
5.1 42.22 678.16 448000 0.0942 scalar_mult_add_matrix
4.2 34.38 712.54 staple_sli
4.0 32.85 745.39 97056 0.3385 matrix_dag_matrix_dag_multiply
2.8 23.10 768.49 500 46.20 reunitarize
2.0 16.49 784.98 79280 0.2080 calc_UV_sub_TL_start
Well, not quite, but we're at 83 MFlops now.
Regards,
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] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-10 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (3 preceding siblings ...)
1997-03-13 5:00 ` Geoffrey Welsh
@ 1997-03-15 5:00 ` henley
[not found] ` <332b221b.1501158@news.jussieu.fr>
1997-03-15 5:00 ` Achim Gratz
` (6 subsequent siblings)
11 siblings, 1 reply; 41+ messages in thread
From: henley @ 1997-03-15 5:00 UTC (permalink / raw)
Achim Gratz wrote:
>
> hedrick@geneva.rutgers.edu (Charles Hedrick) writes:
>
> > I just tried a 167 MHz Sun Ultra 1, and got 61 Mflops. This is with
> > code I just got, so presumably it has the newest RISC optimizations in
> > it. These are not current machines: there are now 200 and 250 MHz
> > Ultras available. Compiled with Sun's C compiler version 4.0, -fast.
>
> Try with
>
> `-fast -xO5 -xsafe=mem -xtarget=ultra1/170 -xarch=v8plusa -xrestrict'
>
> and see it jump to 80 MFlop (on the same machine). The original
> version comes out at 72 MFlops. Some compilers are better than others
> and I found the compilers for Alpha always seem to need more nudging.
> But that's beside the point. The code is really ugly (sorry
> Mr.Henley). I couldn't find out for instance how to drop in CGS
> instead of CG (and I have implemented both before). Is this a
> nonlinear CG procedure? And the matrix_matrix_multiply makes me
> dizzy. It looks more like a cross product or where are the minusses
> coming from?
Your comments, of course, are interesting, but no need to display your
ignorance. The minuses come from the fact that the matrices are
SU3 matrices, and therefore complex. Do you understand what a complex
matrix is? Did you run the routines that Robert Harley rewrote? And as
for the CG routine, it is not a typical conjugate gradient routine.
The "matrix" that is inverted is not really a matrix, ok? So your
previous
experience with CG is completely irrelevant. The matrix multiplication
is the most expensive step in the conjugate gradient (as you will
agree),
but the actual multiplication is an abstract one in this sense. It
involves
transporting 8 neigboring complex vectors (ie, 6 components, 3 real,
3 imaginary) to each point of a distinct parity via the gauge links (a
la
General Relativity) which are COMPLEX 3 dimensional matrices. It is
a complex four dimensional operation that is difficult to implement.
Now the fact is that typically the code would be run with a smaller
quark mass, in which case the CG will have more iterations. If you
checked,
you will notice that the matrix_matrix_multiply routine is not called
from the CG routine anyway, so it is not as important in the really
tough simulations (i.e., small quark masses!). I want to use small
quark masses, because these correspond to the low energy hadronic states
(such as protons etc) that are more interesting to me. I simply
posted my code because I am interested in the comments of others,
and also I would like to see how different machines compare.
Thanks for your timings, BTW, I'll add them to my list.
Henley
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-13 5:00 ` Loesche
@ 1997-03-15 5:00 ` Martin T. Griffin
0 siblings, 0 replies; 41+ messages in thread
From: Martin T. Griffin @ 1997-03-15 5:00 UTC (permalink / raw)
This discussion must have been the MISC part of this NT.MISC group.
So much for cross posting.
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (5 preceding siblings ...)
1997-03-15 5:00 ` Achim Gratz
@ 1997-03-16 5:00 ` henley
1997-03-16 5:00 ` henley
` (4 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: henley @ 1997-03-16 5:00 UTC (permalink / raw)
Peter Mayne wrote:
>
> henley wrote:
> > With fortran you can't do fun
> > stuff like my solar system simulator (for NT, Intel&Alpha, SMP,
> > OpenGL 3D animation) (http://tonys.ecology.umn.edu/nbody/),
>
> Why not?
:)
I suppose I don't really know if it is possible..... is it?
Can you do Win32 stuff (for example) from Fortran? Come to
think of it, modern fortran is quite modern...
Ok, so maybe you can... but I would think it would drive
you nuts!
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
[not found] ` <332b221b.1501158@news.jussieu.fr>
@ 1997-03-16 5:00 ` henley
0 siblings, 0 replies; 41+ messages in thread
From: henley @ 1997-03-16 5:00 UTC (permalink / raw)
Vadim Zeitlin wrote:
>
> On Sat, 15 Mar 1997 12:57:46 -0600, henley
> <henley@tonys.ecology.umn.edu> wrote:
>
> >> But that's beside the point. The code is really ugly (sorry
> >> Mr.Henley). I couldn't find out for instance how to drop in CGS
> >> instead of CG (and I have implemented both before). Is this a
> >> nonlinear CG procedure? And the matrix_matrix_multiply makes me
> >> dizzy. It looks more like a cross product or where are the minusses
> >> coming from?
> >
> >Your comments, of course, are interesting, but no need to display your
> >ignorance. The minuses come from the fact that the matrices are
> >SU3 matrices, and therefore complex. Do you understand what a complex
> >matrix is?
>
> I think you're being a little too hard here... In fact, the code is
> not _very_ readable and it does look like Fortran to me :-) Even if
> complex matrices are not something I've never heard about it took me
> some time to realize what was going on there.
Yes, I know it is not readable.. in fact I have the words "ugly"
and "messy" in my own description! Why does it look like Fortran?
Try to write the routines using a complex struct, and see the
performance drop down to zero... Even better, write it in C++ and see
the performance REALLY drop. IT does not really matter how untidy the
code is anyway... much real code is messy. The interesting thing is
how different machines compare, don't you think?
When it comes down to it, you would like a routine to run FAST. If this
means that it does not look pretty... well then, that is unfortunate.
I would love for someone to make it even uglier if it goes faster!
There is yet another way to get the code to perform better on RISC
CPUs, which nobody has mentioned yet... I'll try it soon. It will look
even more like fortran, I'm afraid, but it'll certainly be faster. ;-)
Actually, come to think of it, I do have a C++ version somewhere,
which I used to play with the algorithm the first time round! I should
find it.... It runs about 1/10th as fast.
>
> BTW, your code isn't multithreaded under UNIX, is it? I tried it on
> a bi-PPro 200 under RedHat Linux 4.1 but the results were quite bad
> (41 MFlops! what command line do you use with gcc?). I'll repost all
> the results when I'll finish with running the code (I'm going to try
> it at 5 different machines).
No, you are right... the SMP is for NT only. I only wrote the NT
stuff a week ago. I used very ugly #defines, because this is
prototype code afterall.... but, if you would like to port it to
other SMP platforms, that would be great. The thread stuff is not
too complicated.... and mostly in SMP_NT.c.
BTW, I got the results from an old PowerMac, a 66MHz one, which managed
26 Mflops/s. This is not bad at all....
Henley
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (6 preceding siblings ...)
1997-03-16 5:00 ` henley
@ 1997-03-16 5:00 ` henley
1997-03-17 5:00 ` henley
` (3 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: henley @ 1997-03-16 5:00 UTC (permalink / raw)
Achim Gratz wrote:
> FORTRAN in C, so why don't write it in FORTRAN and get
> the better optimizations F77 compilers are entitled to? BTW, this is
> an linear algebra benchmark:
I detest Fortran, and I do not believe that fortran is always
better than C... (with the exception of high level parallel or
vector languages on super computers). With fortran you can't do fun
stuff like my solar system simulator (for NT, Intel&Alpha, SMP,
OpenGL 3D animation) (http://tonys.ecology.umn.edu/nbody/),
and C can be every bit as fast, in my opinion.
Doing a search for an article that I remembered seing before,
is some code that also performs lattice QCD calculations. Of course,
the code will not be identical, but it would probably perform very
similar calculations. If it used quenched or Wilson fermions, then
one would expect it to be more efficient than my code, which
uses staggered quarks:
> Subject: Re: big memory on PPro or Alpha
> From: Donald K.Sinclair <dks@sgi9.hep.anl.gov>
> Date: 1997/01/20
> Message-Id: <5c105f$54s@milo.mcs.anl.gov>
> Newsgroups: comp.sys.intel,comp.sys.dec,alt.comp.hardware.pc-homebuilt
>
> I have run lattice QCD codes on a 200Mhz Pentium Pro (Linux + Absoft f77) and
> a 250Mhz AlphaStation (DEC Unix + DEC f77). My benchmarks were 40+Mflops for
> the Pentium Pro, and 70+Mflops for the AlphaStation. I have also developed
> lattice QCD codes (not precisely the same ones, but similar) for the CRAY T3D,
> in CFT77. These only ran at about 20Mflops/node. As I understand it, the
> problem here is that the T3D has no L3 cache, whereas the AlphaStations and
> (most of) the Alpha based clones do.
> Don Sinclair
Compare these with my (your) timings on similar machines.
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers.
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
0 siblings, 1 reply; 41+ messages in thread
From: henley @ 1997-03-16 5:00 UTC (permalink / raw)
Paul Repacholi (prep) wrote:
> Please note, thee numbers where taken on a timeshared system, in
> a cluster running over a T-1 link. The machine was pretty idle though,
> the 114 Mflop run was showing 97-99% on monitor.
Very good timings! Thanks!
A comment to all who have written to me with comments and
numbers, etc... THANK YOU VERY MUCH!! I really appreciate it,
and all the comments. Many people have pointed out bugs, better
ways of doing things, suggestions, etc... all of which have
been very useful. I will follow up on the suggestions, fix up the
code, and then make it available for anyone who would like to
download it. I will also try to make comments, and clean it up!
Sorry about the previous code, I decided to post my initial
post on the spur of the moment, on code that I had JUST finished
porting to SMP NT. I didn't even check it for bugs, really, but the
results it produced compared exactly with the MILC lattice
QCD collaboration's code (which is also available on the
internet).... I know there was a problem with some // comments
and a not-so-portable-use of the clock() function (blame
MSVC++ help file! heh heh!), a missing #endif somewhere (oops!)...
I'll get it ready for the T3E, and also use a more portable SMP
and MPP approach so that it will be easy to port to other
architectures, besides Cray MPP and NT SMP which I did for this
one.
cheers
Henley
^ permalink raw reply [flat|nested] 41+ messages in thread
* 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 ` Paul Repacholi (prep)
1997-03-16 5:00 ` henley
1 sibling, 1 reply; 41+ messages in thread
From: Paul Repacholi (prep) @ 1997-03-16 5:00 UTC (permalink / raw)
On 12 Mar 1997, Robert Harley wrote:
> With the new arithmetic functions (emailed to Henley) the figures are:
>
> 266MHz Alpha: 101 Mflops
> 500MHz Alpha: 177 Mflops
>
On a 300MHz 8400, VMS, several other jobs running!!
The original code gave 59Mflops. ( better than the 47 running at prio=1! )
The `fast' code gave 110 and 114.
Please note, thee numbers where taken on a timeshared system, in
a cluster running over a T-1 link. The machine was pretty idle though,
the 114 Mflop run was showing 97-99% on monitor.
~Paul
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (10 preceding siblings ...)
1997-03-17 5:00 ` Achim Gratz
@ 1997-03-17 5:00 ` Peter Mayne
11 siblings, 0 replies; 41+ messages in thread
From: Peter Mayne @ 1997-03-17 5:00 UTC (permalink / raw)
henley wrote:
> With fortran you can't do fun
> stuff like my solar system simulator (for NT, Intel&Alpha, SMP,
> OpenGL 3D animation) (http://tonys.ecology.umn.edu/nbody/),
Why not?
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
-------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
This was typed by an infinite number of monkeys.
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (8 preceding siblings ...)
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
11 siblings, 0 replies; 41+ messages in thread
From: Paul DeMone @ 1997-03-17 5:00 UTC (permalink / raw)
henley wrote:
[snip]
> I detest Fortran, and I do not believe that fortran is always
> better than C... (with the exception of high level parallel or
> vector languages on super computers). With fortran you can't do fun
> stuff like my solar system simulator (for NT, Intel&Alpha, SMP,
I remember seeing the source code for the orginal adventure game
("you are a twisty maze of narrow passages") and it was written
in FORTRAN; it was sure a lot of fun at the time.
[snip]
--
Paul W. DeMone The 801 experiment SPARCed an ARMs race
Kanata, Ontario to put more PRECISION and POWER into
demone@mosaid.com architectures with MIPSed results but
PaulDeMone@EasyInternet.net ALPHA's well that ends well.
^ 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 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (9 preceding siblings ...)
1997-03-17 5:00 ` Paul DeMone
@ 1997-03-17 5:00 ` Achim Gratz
1997-03-17 5:00 ` Peter Mayne
11 siblings, 0 replies; 41+ messages in thread
From: Achim Gratz @ 1997-03-17 5:00 UTC (permalink / raw)
henley <henley@tonys.ecology.umn.edu> writes:
> Your comments, of course, are interesting, but no need to display your
> ignorance. The minuses come from the fact that the matrices are
> SU3 matrices, and therefore complex. Do you understand what a complex
> matrix is? Did you run the routines that Robert Harley rewrote? And as
> for the CG routine, it is not a typical conjugate gradient routine.
I do know, what a complex matrix is, but your code doesn't say so. I
admit I don't know anything about QCD (not everyone's a physicist,
right?), but I fail to see where this makes me ignorant. Your CG
looks fairly typical to me except for the fact that where one would
expect a matrix-vector-product, there's two calls to D_slash. My
question again, is this a linear or nonlinear operation? Has it side
effects? What is the reason for having a separate matrix for the real
and imaginary part? Would it be possible to pack these so that you
get a matrix of complex numbers?
> The "matrix" that is inverted is not really a matrix, ok? So your
> previous experience with CG is completely irrelevant. The matrix
> multiplication is the most expensive step in the conjugate gradient
> (as you will agree), but the actual multiplication is an abstract
> one in this sense. It involves transporting 8 neigboring complex
> vectors (ie, 6 components, 3 real, 3 imaginary) to each point of a
> distinct parity via the gauge links (a la General Relativity) which
> are COMPLEX 3 dimensional matrices. It is a complex four dimensional
> operation that is difficult to implement.
OK, while I still don't understand the physics involved, then don't
call this function matrix_matrix_multiply when it is in fact something
completely different.
[...]
> me. I simply posted my code because I am interested in the comments
> of others, and also I would like to see how different machines
> compare.
[...]
I understand (I think) why you posted the code and I like the idea.
But nobody who doesn't have a QCD background (like me) will have the
slightest chance of understanding (and hence optimising) the code if
it stays like it is, that's why I called it ugly. I'm sorry if that
is offending to you, but I stand by my word.
Regards,
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] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-10 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
` (7 preceding siblings ...)
1997-03-16 5:00 ` henley
@ 1997-03-17 5:00 ` henley
1997-03-17 5:00 ` Paul DeMone
` (2 subsequent siblings)
11 siblings, 0 replies; 41+ messages in thread
From: henley @ 1997-03-17 5:00 UTC (permalink / raw)
Achim Gratz wrote:
> Your CG
> looks fairly typical to me except for the fact that where one would
> expect a matrix-vector-product, there's two calls to D_slash. My
> question again, is this a linear or nonlinear operation? Has it side
> effects? What is the reason for having a separate matrix for the real
> and imaginary part? Would it be possible to pack these so that you
> get a matrix of complex numbers?
These are good points... Actually, the reason for having the
real/imaginary separated like that goes back to when I had
those routines coded in assembly level routines on the CM5.
I could go into details if you like, but I could get better
performance that way. As for the two calls to D_slash...
yes, that takes the part of the matrix-vector multiplication of
conjugate gradient, and I don't know whether I would call it
a linear operation or not. I guess I would.
>
> > The "matrix" that is inverted is not really a matrix, ok? So your
> > previous experience with CG is completely irrelevant. The matrix
> > multiplication is the most expensive step in the conjugate gradient
> > (as you will agree), but the actual multiplication is an abstract
> > one in this sense. It involves transporting 8 neigboring complex
> > vectors (ie, 6 components, 3 real, 3 imaginary) to each point of a
> > distinct parity via the gauge links (a la General Relativity) which
> > are COMPLEX 3 dimensional matrices. It is a complex four dimensional
> > operation that is difficult to implement.
>
> OK, while I still don't understand the physics involved, then don't
> call this function matrix_matrix_multiply when it is in fact something
> completely different.
It IS a matrix-matrix multiplication! It multiplies two SU(3) matrices
(SU(3) matrices are special (det = 1) unitary complex 3x3 matrices).
Seriously, I do know what I am talking about. Imagine you spent a
couple of years working on an algorithm, and someone told you that you
had accidently used a cross-product calculation instead of a
matrix multiplication.... heh. I think you may be confused as
to what the "matrix" is. The "matrix" used in the CG routine does not
have seperate real and imaginary parts.... but its elements are
SU(3) matrices which do.
>
> [...]
> > me. I simply posted my code because I am interested in the comments
> > of others, and also I would like to see how different machines
> > compare.
> [...]
>
> I understand (I think) why you posted the code and I like the idea.
> But nobody who doesn't have a QCD background (like me) will have the
> slightest chance of understanding (and hence optimising) the code if
> it stays like it is, that's why I called it ugly. I'm sorry if that
> is offending to you, but I stand by my word.
To quote the readme.txt that I posted:
"...The code is messy and ugly... sorry, it is still in a very early
development stage..." I could have spent a couple of days cleaning it,
checking it, and adding comments.
Nobody likes someone else's code, especially if there are zero comments!
:) Robert Harley is not a physicist (although he is very smart, and
may be a mathematician, I think), and he rewrote several routines
(in fast_routines.c, the very ones you are probably using). His
changes improved the performance on RISC CPUs substantially, so it is
entirely possible to optimize and improve this code without knowing
any QCD.
How about you rewrite a couple of routines, and make them look pretty?
If they are faster too, I would love to have them. And while you are
at it, how about posting some of YOUR code. ;)
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers.
1997-03-16 5:00 ` henley
@ 1997-03-17 5:00 ` Ben Myers
0 siblings, 0 replies; 41+ messages in thread
From: Ben Myers @ 1997-03-17 5:00 UTC (permalink / raw)
Where can I download source for said portable benchmark???? Ben Myers
henley <henley@tonys.ecology.umn.edu> wrote:
>Paul Repacholi (prep) wrote:
>> Please note, thee numbers where taken on a timeshared system, in
>> a cluster running over a T-1 link. The machine was pretty idle though,
>> the 114 Mflop run was showing 97-99% on monitor.
>Very good timings! Thanks!
>A comment to all who have written to me with comments and
>numbers, etc... THANK YOU VERY MUCH!! I really appreciate it,
>and all the comments. Many people have pointed out bugs, better
>ways of doing things, suggestions, etc... all of which have
>been very useful. I will follow up on the suggestions, fix up the
>code, and then make it available for anyone who would like to
>download it. I will also try to make comments, and clean it up!
>Sorry about the previous code, I decided to post my initial
>post on the spur of the moment, on code that I had JUST finished
>porting to SMP NT. I didn't even check it for bugs, really, but the
>results it produced compared exactly with the MILC lattice
>QCD collaboration's code (which is also available on the
>internet).... I know there was a problem with some // comments
>and a not-so-portable-use of the clock() function (blame
>MSVC++ help file! heh heh!), a missing #endif somewhere (oops!)...
>I'll get it ready for the T3E, and also use a more portable SMP
>and MPP approach so that it will be easy to port to other
>architectures, besides Cray MPP and NT SMP which I did for this
>one.
>cheers
>Henley
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
1997-03-11 5:00 ` Mike Greaves
@ 1997-03-26 5:00 ` James Mansion
0 siblings, 0 replies; 41+ messages in thread
From: James Mansion @ 1997-03-26 5:00 UTC (permalink / raw)
This is untrue.
The NT Workstation that comes in the box supports 2, NT Server supports
4, to do more than that you need a new HAL, but these come with the SMP
server systems.
Digital already support NT on more than 4 CPUs.
(This is not to say that NT has scaled well on more than 4 CPUs, though
I understand that 4.0 does rather better)
James
Mike Greaves wrote:
>
> henley wrote:
> >
> > The NT version will run on a quad CPU machine too... Does anyone out
> > there have a eight-CPU box?? (Is there such a thing?). If you do,
>
> The maximum number of CPU's that Windows NT currently supports is 4.
> Intel systems with 16, 32 or even more processors exist (Sequent NUMA
> systems, Intel Paragon, etc.) but only run Unix. I understand that
> commodity 8 processor Pentium Pro servers are to be available within a
> year or so. By then, NT will probably support 8 CPU's.
>
> Mike Greaves
> mgreaves@pathcom.com
^ 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-10 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers Robert Harley
1997-03-10 5:00 ` 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 ` 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 ` Chris Ruemmler
1997-03-14 5:00 ` H.W. Stockman
1997-03-14 5:00 ` William J. Burlingame
1997-03-14 5:00 ` Charles Hedrick
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 ` henley
1997-03-17 5:00 ` Paul DeMone
1997-03-17 5:00 ` Achim Gratz
1997-03-17 5:00 ` Peter Mayne
-- 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox