From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2d89657929ba7a6b X-Google-Attributes: gid111c93,public From: dontspam_esci@fastlane.net Subject: Re: Switching from LInux to DU for Fortran Date: 1998/12/20 Message-ID: <3D4E0E02941E69B4.CC5A8317D1D65D21.99407DD22F5A5872@library-proxy.airnews.net>#1/1 X-Deja-AN: 424106231 References: <754rjf$qv4$1@news.kjist.ac.kr> <3678BD23.7A1@magicnet.net> <5AEB9746C45923FC.114D92FA1D227798.FED8CEFB0737469D@library-proxy.airnews.net> <367BD379.A9B61853@moene.indiv.nluug.nl> X-Orig-Message-ID: <75hqfq$599@library.airnews.net> NNTP-Posting-Time: Sat Dec 19 21:21:30 1998 Organization: Fastlane Communications (using Airnews.net!) NNTP-Proxy-Relay: library.airnews.net User-Agent: tin/pre-1.4-980226 (UNIX) (FreeBSD/2.2.6-RELEASE (i386)) Abuse-Reports-To: abuse at fastlane.net to report improper postings Newsgroups: comp.os.linux.alpha Toon Moene wrote: [snip] > This is rather exceptional. On the SPECfp95 suite, on an EB164 based > machine egcs-1.[01] gets about 60 % of the performance of the Digital > Fortran compiled code. > A factor of 3 would already be exceptional, but 10-15 times slower means > something else is wrong (probably not even related to the compiler). > Is the part of the code where most of the CPU time is spent easily > identifiable ? In that case it would be possible to reason about the > strange slow-down. The code in question has 2 sqrts and 4 other divides in a tight loop w/ 7 multiplies and 7 adds. There are 5 operands per iteration. It's not surprising that compilers have trouble w/ it. The amazing part is how well DEC FORTRAN handles it. Because of the circumstances under which I was working. I was unable to properly study the differences in code generation. I made some attempt to do so, but lost some files moving them between machines and was not able to recover. Once the DU SDK arrives I will be able to conduct more thorough tests and will provide more details. Note this was not production code, but a loop extracted from a production code, so there really wasn't anything else going on. While I did a fairly lengthy set of tests of NDP FORTRAN flag combinations, I did not do this w/ g77. I suspect that there are better choices (I used -O5 -fast). I will certainly look into the difference pretty carefully as soon as time permits. I quite agree that it is rather extreme. Reg Beardsley rhb @ acm.org