From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f67f3,c1ccff4e01ceb28a X-Google-Attributes: gidf67f3,public X-Google-Thread: 10a2ed,e56d115cef48b8c8 X-Google-Attributes: gid10a2ed,public X-Google-Thread: 1164f8,e56d115cef48b8c8 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,e56d115cef48b8c8 X-Google-Attributes: gid110292,public From: henley Subject: Re: big memory on PPro or Alpha Date: 1997/01/19 Message-ID: <32E25A27.7FE9@tonys.ekology.umn.edu>#1/1 X-Deja-AN: 210859515 references: <32DD4F26.7178@no.spam.thanks> <32DD5D5D.167EB0E7@latoso.cheme.cornell.edu> <32DFAB6D.146B@tonys.ekology.umn.edu> <5bsugt$s7i@usenet.pa.dec.com> content-type: text/plain; charset=us-ascii organization: University of Minnesota mime-version: 1.0 newsgroups: comp.sys.intel,comp.sys.dec,alt.comp.hardware.pc-homebuilt,alt.fan.e-t-b x-mailer: Mozilla 3.0 (WinNT; I) Burkhard Neidecker-Lutz wrote: > > In article <32DFAB6D.146B@tonys.ekology.umn.edu> henley writes: > >Yes, this is silly. Here are some timings, on a full QCD > >code with staggered quarks, 5 MonteCarlo steps, 100 > >molecular dynamics steps... quark mass: 0.01, beta=5.6: > > Can you give the source code out ? Something is fishy about > the numbers here. I would like to make an analysis of the code > to see why it seems to run slow on the Alpha. > > Burkhard Neidecker-Lutz The entire source code is several thousand lines long, and I am not about to post it or give it out just yet. I originally designed the program for the CM5, where I achieved peak flops rates near 100Mflops/node (which was pretty good in its day, on the CM5). When I started to port the code over to the T3D, I first got a version to run on my pentium, since I decided to use ANSI C... anyway, I made an initial crude version, and it performed very well on the pentium, and not so well on an alpha. The thing about lattice QCD is that it uses standard iterative methods such as conjugate gradient, etc, on large linear systems, BUT the elements of the "matrices" are not numbers, but rather complex 3x3 matrices themselves. The basic operation in the code is the following (corresponding to a simple multiplication in a normal CG routine, for example): dest_vector = src_matrix*src_vector (although there are several variants, such as adding the result to another vector, etc...) where the matrices are 3x3 and complex, and the vectors are complex 3 vectors.... all variables being of type "float". There are many ways to perform such an operation efficiently, and usually I would attempt to "vectorize" it (so that the compilers can work their magic, I suppose). It just so happens that the most obvious and crudest (and my initial) attempt performed exceptionally well on a pentium, and poorly on an alpha. Try it out for yourself. I must admit I made no attempt to make it run fast on an alpha, I was just surprised to see the pentium outperform the alphas I used on the first "draft".