Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: henley <henley@tonys.ecology.umn.edu>
Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers.
Date: 1997/03/17	[thread overview]
Message-ID: <332D6190.5831@tonys.ecology.umn.edu> (raw)
In-Reply-To: 5g120v$312@news-rocq.inria.fr


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. ;)



  parent reply	other threads:[~1997-03-17  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   ` 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-12  5:00     ` henley
1997-03-14  5:00     ` Charles Hedrick
1997-03-10  5:00 ` H.W. Stockman
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-13  5:00 ` Geoffrey Welsh
1997-03-15  5:00 ` Achim Gratz
1997-03-15  5:00 ` henley
     [not found]   ` <332b221b.1501158@news.jussieu.fr>
1997-03-16  5:00     ` henley
1997-03-16  5:00 ` henley
1997-03-16  5:00 ` henley
1997-03-17  5:00 ` Peter Mayne
1997-03-17  5:00 ` Achim Gratz
1997-03-17  5:00 ` Paul DeMone
1997-03-17  5:00 ` henley [this message]
  -- 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