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: 111c93,59e2972ecd618017 X-Google-Attributes: gid111c93,public X-Google-Thread: 1164f8,59e2972ecd618017 X-Google-Attributes: gid1164f8,public From: Toon Moene Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test! Date: 1999/07/01 Message-ID: <377BB711.87AD7FCE@moene.indiv.nluug.nl>#1/1 X-Deja-AN: 496115745 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> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@nl.uu.net X-Trace: zonnetje.NL.net 930854727 20679 195.109.255.217 (1 Jul 1999 18:45:27 GMT) Organization: Moene Computational Physics, Maartensdijk, The Netherlands Mime-Version: 1.0 NNTP-Posting-Date: 1 Jul 1999 18:45:27 GMT Newsgroups: comp.os.linux.alpha,comp.lang.fortran,comp.sys.dec,vmsnet.alpha C.Simmendinger wrote: > > > test-run:g77 -O3 -fexpensive-optimizations -fno-emulate-complex > > > (egcs-1.1.1/cpml): 432s > > > test-run: fort -O4 : 123 s > > How about: -funroll-loops for egcs ? > test-run:g77 -O3 -fexpensive-optimizations -fno-emulate-complex > -funroll-loops (egcs-1.1.1/cpml): 420sHm, better, but still a mile off. > BTW:The above result is by no means a general statement (!), > i've seen egcs/g77 performing rather well too. 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. However, given that you use -fno-emulate-complex, I deduce: 1. Your code is complex-arithmetic-bound. 2. It is DOUBLE COMPLEX (on an Alpha egcs-1.1.2 would almost certainly fail with -fno-emulate-complex if your source contained single precision complex (gcc-2.95, the successor of egcs-1.1.2 will have -fno-emulate-complex as default, because we believe all the remaining problems with complex arithmetic in the common backend have been solved). 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. 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). > Anyway i'll benchmark a few more of our codes plus the lapack now. > DEC against g77 against fort: > And to be completely unfair i'll use Goto's assembler routines. > (against the DEC alpha). Yeah, no compiler can beat hand-optimized assembler on the LAPACK routines. -- 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