From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,3e10dbc776740ba1 X-Google-Attributes: gid110292,public X-Google-Thread: fb9cd,3e10dbc776740ba1 X-Google-Attributes: gidfb9cd,public X-Google-Thread: f57db,3e10dbc776740ba1 X-Google-Attributes: gidf57db,public X-Google-Thread: 1164f8,3e10dbc776740ba1 X-Google-Attributes: gid1164f8,public From: henley Subject: Re: A portable benchmark for ANSI C compilers, Windows NT and MPP supercomputers. Date: 1997/03/15 Message-ID: <332AF12A.3F0@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 225779750 References: <5g120v$312@news-rocq.inria.fr> Organization: University of Minnesota Newsgroups: comp.benchmarks,comp.sys.intel,comp.sys.dec,comp.os.ms-windows.nt.misc 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