From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,59e2972ecd618017 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 111c93,59e2972ecd618017 X-Google-Attributes: gid111c93,public X-Google-Thread: 1164f8,59e2972ecd618017 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1094ba,59e2972ecd618017 X-Google-Attributes: gid1094ba,public From: Toon Moene Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test! Date: 1999/07/02 Message-ID: <377C8F31.A28B0D6D@moene.indiv.nluug.nl>#1/1 X-Deja-AN: 496362644 Content-Transfer-Encoding: 7bit References: <37863b6b.763727375@usenet.pa.dec.com> <377A5FB0.CE4D7459@nat.vu.nl> <377A6719.15868ED3@moene.indiv.nluug.nl> <377A6E49.B91B16D9@nat.vu.nl> <377BB711.87AD7FCE@moene.indiv.nluug.nl> <377C8125.5D04CF5E@nat.vu.nl> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@nl.uu.net X-Trace: zonnetje.NL.net 930910056 81 195.109.255.217 (2 Jul 1999 10:07:36 GMT) Organization: Moene Computational Physics, Maartensdijk, The Netherlands Mime-Version: 1.0 NNTP-Posting-Date: 2 Jul 1999 10:07:36 GMT Newsgroups: comp.os.linux.alpha,comp.lang.fortran,comp.sys.dec,vmsnet.alpha C.Simmendinger wrote: > > Toon Moene wrote: > > > Normally, code that runs 3.5 faster with Compaq Fortran as opposed to > > g77 has some feature in its hot spot that makes it immediately clear > > where the speed difference comes from. > > Well, in my experience the problem with egcs is like this:If you can keep > the data in the cache, egcs does a pretty good job. > If not then not. > Just try a very simple thing, a gemm, complex or not. Run that unoptimized > (no cache blocking etc) through egcs. The performance then is > limited by memory bandwidth (as it should). Do the same with > the GEM (DEC) compiler: It's 3-4 times faster. Yes, but the DEC compilers I know of only do that sort of loop transformation at optimisation level -O5 and you used -O4 (at least, that is what you wrote). Or do newer DEC compilers already perform this optimisation at lower -On ? I don't think you will see this optimisation any time soon in egcs/gcc, because it is very hard to do right at the level of detail the loop optimisations take place. > > 1. Complex division, square root and abs are all computed via run-time > > library routines instead of by inline code. gcc-2.95 will inline > > complex division. > > -O3 should inline that (!?). I also use the cpml. No, -O3 only inlines subprograms earlier in the same source file, not run-time library routines (this is due to the way inlining works in gcc/g77: The backend "saves" the internal representation of small routines until the end of processing an entire file, to see if there's a spot where they might be inlined). HTH, -- Toon Moene (toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 GNU Fortran: http://world.std.com/~burley/g77.html