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: 1094ba,59e2972ecd618017 X-Google-Attributes: gid1094ba,public X-Google-Thread: 1164f8,59e2972ecd618017 X-Google-Attributes: gid1164f8,public X-Google-Thread: 111c93,59e2972ecd618017 X-Google-Attributes: gid111c93,public From: "C.Simmendinger" Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test! Date: 1999/07/02 Message-ID: <377C8125.5D04CF5E@nat.vu.nl>#1/1 X-Deja-AN: 496352210 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> Organization: Vrije Universiteit Amsterdam Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha,comp.lang.fortran,comp.sys.dec,vmsnet.alpha 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. The only explanation i can possibly think of is that the strategy of the GEM in terms of memory access is way more sophisticated than anything egcs has to offer. Alternatively GEM does some sort of KAP-like preprocessing, but this doesn't fit with other benchmarks. > However, given that you use -fno-emulate-complex, I deduce: > > 1. Your code is complex-arithmetic-bound. Partly (20-30% maybe) > 2. It is DOUBLE COMPLEX Yepp. > So, to make a stab at it: > > 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. > 2. You do not happen to have an expression like z ** 2. in your code ? > (this is my favourite: z ** 2. will be computed as exp(2.0*log(z)), > whereas z ** 2 will be computed as z * z). Nope .. Sorry :-) Christian