From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,10f70e989313f8fc X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,148db191ef7ef08a X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,148db191ef7ef08a X-Google-Attributes: gid1164f8,public From: Toon Moene Subject: Re: Why the CPQ AlphaServer DS20 Flies on FP (was Re: HP PA-8500 fp performance: Ugh!) Date: 1999/01/18 Message-ID: <36A3A45D.AEE698D8@moene.indiv.nluug.nl>#1/1 X-Deja-AN: 434143803 Content-Transfer-Encoding: 7bit References: <369E4B0C.A3A3D85E@moene.indiv.nluug.nl> <77o21h$3pl@news1.newsguy.com> <36A07DD3.D268F09E@moene.indiv.nluug.nl> <36A36D05.6DBBDA23@rhea.umd.edu> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@nl.uu.net X-Trace: koza.nl.net 916694202 8585 195.109.255.217 (18 Jan 1999 21:16:42 GMT) Organization: Moene Computational Physics, Maartensdijk, The Netherlands Mime-Version: 1.0 NNTP-Posting-Date: 18 Jan 1999 21:16:42 GMT Newsgroups: comp.arch,comp.sys.dec,comp.sys.intel Jeffrey J. Potoff wrote: > > Toon Moene wrote: > > Although I agree [...] in principle, I get really uneasy when just > > adding a set of flags to a compile statement one can get a twofold > > increase in performance (this happens on some of the tests - turb3d, and > > in a lesser way - su2cor). > > > > This is not something I see in practice. > We see it all the time. It's not uncommon for our fortran codes to gain > a 2x performance boost when going from -O to -O5 optimization under the DEC > Fortran 90 compiler. On certain codes > "-speculate_all" will yield another > 20% and on others it gives no improvement. It seems a bit silly to spend > days or weeks coding up a problem and then use base optimization levels, > especially if this is a code that is to be run for hundreds of CPU hours. Oh yeah, if that's the case, surely you should do that. I couldn't find a significant difference (i.e. more than the timing difference from run to run with our code) between using -O (which really is -O4) and -O5 using DEC Fortran (77) under DEC Unix. I think Patrick McGehearty hits the bull's eye: > It may be the codes that Toon uses are already well written to > be relatively easy for the compiler to generate good code. In my role > as compiler performance analyst, I regularly see codes where the flags > chosen can vary application performance by factors of two or more. It's probably not so much that the code is written well, as well that our code has rather large inner loops, which give most compilers ample opportunity to optimize register usage, scheduling of code and what not, without having to go to extremes like "software pipelining", "prefetching" and such. Furthermore, we hardly use transcendentals, so Digital's clever 4-sqrts-at-a-time trick gets lost in the noise for our code; for others this might easily mean a factor of three in speed. Even simple measures like unrolling do not buy us much [for the few loops for which it would be beneficial]. HTH, - Toon Moene (toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com