From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bf98da65c7d90c8a X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,bf98da65c7d90c8a X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,bf98da65c7d90c8a X-Google-Attributes: gid1094ba,public X-Google-Thread: 114b0c,bf98da65c7d90c8a X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1993-06-24 14:41:26 PST Xref: gmd.de comp.sys.dec:8425 comp.unix.osf.osf1:532 comp.lang.fortran:6682 comp.sys.hp:19884 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!sdd.hp.com!col.hp.com!fc.hp.com!sde.hp.com!marc From: marc@sde.hp.com (Marc Sabatella) Newsgroups: comp.sys.dec,comp.unix.osf.osf1,comp.lang.fortran,comp.sys.hp Subject: Re: Summary: Alpha Performance Followup-To: comp.sys.dec,comp.unix.osf.osf1,comp.lang.fortran,comp.sys.hp Date: 24 Jun 1993 21:26:02 GMT Organization: HP SESD, Fort Collins, CO Message-ID: <20d65a$qrk@hpfcbig.sde.hp.com> References: <24JUN199310084315@author.gsfc.nasa.gov> <20clhd$qls@sol.TIS.COM> <1993Jun24.144119.1@uwovax.uwo.ca> <20d2e7$845@sol.TIS.COM> NNTP-Posting-Host: hptrane.sde.hp.com X-Newsreader: TIN [version 1.2 PL0.7] Marcus J Ranum (mjr@tis.com) wrote: > Compiler optimization is a different game from what I call > "benchmark-oriented optimization." I suspect that most of the folks > who work on optimizers use some kind of benchmark against which to > measure the effectiveness of their optimizations. But that's just a > way of seeing how much the optimization helped. There's a world of > difference (IMHO) between an optimization that makes (say) string > copying run 2% faster and an optimization that makes the MATRIX > benchmark 300% faster. 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. That's it. This seems to me to be an inherently useful optimization - at least, for programmers who were not already careful about such things - and should pretty standard fare for any vectorizing compiler, I would think. > SPEC blew it because they didn't blow the > whistle on this game, and now they have lost any credibility > they might have had. I fault the SPEC committee for including a benchmark can be so easily circumvented by such a naturally useful optimization technique. -- Marc Sabatella marc@fc.sde.hp.com -- All opinions expressed herein are my personal ones and do not necessarily reflect those of HP or anyone else.