From: henley <henley@tonys.ecology.umn.edu>
Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
Date: 1997/03/16 [thread overview]
Message-ID: <332C7589.923@tonys.ecology.umn.edu> (raw)
In-Reply-To: 332b221b.1501158@news.jussieu.fr
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
next prev parent reply other threads:[~1997-03-16 5:00 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` dick'circle-a'buckosoft'dot'com
1997-03-11 5:00 ` Peter Mayne
1997-03-10 5:00 ` H.W. Stockman
1997-03-12 5:00 ` Peter Mayne
1997-03-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-10 5:00 ` H.W. Stockman
1997-03-13 5:00 ` Geoffrey Welsh
1997-03-15 5:00 ` henley
[not found] ` <332b221b.1501158@news.jussieu.fr>
1997-03-16 5:00 ` henley [this message]
1997-03-15 5:00 ` Achim Gratz
1997-03-16 5:00 ` henley
1997-03-16 5:00 ` henley
1997-03-17 5:00 ` Achim Gratz
1997-03-17 5:00 ` Peter Mayne
1997-03-17 5:00 ` Paul DeMone
1997-03-17 5:00 ` henley
-- strict thread matches above, loose matches on Subject: below --
1997-03-12 5:00 Robert Harley
1997-03-12 5:00 ` henley
1997-03-13 5:00 ` Loesche
1997-03-15 5:00 ` Martin T. Griffin
1997-03-16 5:00 ` A portable benchmark for ANSI C compilers, Windows NT and MPP , supercomputers Paul Repacholi (prep)
1997-03-16 5:00 ` henley
1997-03-17 5:00 ` Ben Myers
1997-03-06 5:00 A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers henley
1997-03-09 5:00 ` Zlatko Calusic
1997-03-09 5:00 ` henley
1997-03-11 5:00 ` Mike Greaves
1997-03-26 5:00 ` James Mansion
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox