From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bf98da65c7d90c8a X-Google-Attributes: gidfee84,public X-Google-Thread: 114b0c,bf98da65c7d90c8a X-Google-Attributes: gid114b0c,public X-Google-Thread: 1094ba,bf98da65c7d90c8a X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,bf98da65c7d90c8a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-06-24 14:50:34 PST Xref: gmd.de comp.sys.dec:8428 comp.unix.osf.osf1:533 comp.lang.fortran:6683 comp.sys.hp:19885 Newsgroups: comp.sys.dec,comp.unix.osf.osf1,comp.lang.fortran,comp.sys.hp Path: gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!news.udel.edu!perelandra.cms.udel.edu!mccalpin From: mccalpin@perelandra.cms.udel.edu (John D. McCalpin) Subject: Re: Summary: Alpha Performance Message-ID: Sender: usenet@news.udel.edu Nntp-Posting-Host: perelandra.cms.udel.edu Organization: College of Marine Studies, U. Del. References: <1993Jun24.144119.1@uwovax.uwo.ca> <20d2e7$845@sol.TIS.COM> <20d65a$qrk@hpfcbig.sde.hp.com> Date: Thu, 24 Jun 1993 21:42:31 GMT In article <20d65a$qrk@hpfcbig.sde.hp.com> marc@sde.hp.com (Marc Sabatella) writes: > >Not necessarily. As I recall, the one and only optimization you have to >perform on matrix300 to make it run faster (and I don't think I'm giving out >any HP trade secrets here) is recognize the two dimensional array is being >traversed in row major rather than column major order, and rewrite the loop >accordingly, which dramatically improves locality and hence cache performance. It is not quite that easy, since the code was written in such a perverse manner. First you have to inline SAXPY, then inline SGEMV, to get a formulation of SGEMM (Matrix Multiply) that is written in terms of a reasonably simple triply nested loop. Then you have to rewrite the loop. If it had been written the way God intended, then most of this funny business would have been unnecessary from the start. -- -- John D. McCalpin mccalpin@perelandra.cms.udel.edu Assistant Professor mccalpin@brahms.udel.edu College of Marine Studies, U. Del. John.McCalpin@mvs.udel.edu