From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,baadd4fe2bf1dd84 X-Google-Attributes: gid111c93,public From: mbkennel@yahoo.com (Matt Kennel) Subject: Re: Redhat/Alpha computational performance???? Date: 1998/03/05 Message-ID: #1/1 X-Deja-AN: 331208892 References: <6dkng7$3hh@news1.newsguy.com> Organization: University of California at San Diego Reply-To: mbkennel yahoo.com Newsgroups: comp.os.linux.alpha On 4 Mar 1998 23:18:31 GMT, Greg Lindahl wrote: :mbkennel@yahoo.com (Matt Kennel) writes: : :> Naturally, but please don't say that these elementary functions aren't :> crucial to a very large number of computations. Some of my other benchmark :> codes which showed poor performance were for computational neuroscience. : :Sure, in many fields, elementary functions are critical. : :It would be good if someone would be inspired to go fix that library. Yes it would be. However, looking at the source it's not obvious to me what exactly needs to be done to "fix" it. :> And why does the Linux/Alpha compiler compile the "FDLIBM" library (a high :> quality IEEE-754 libm) so poorly? : :Is this library fast on other platforms? It might pay to hand-optimize the :output; it's often hard for compilers to compile weird shifts efficiently. I don't know what counts as ''fast'', but I compiled FDLIBM from identical sources on x86 and Alpha with egcs 1.0.1 on Linux/Alpha , and tested a benchmark computational neuronal network program written in C. The compiler flags were -O3 -ffast-math and on x86 -malign-double, and linked with my personally compiled libm and not the system one. This program exercises only double precision 'exp' heavily, being about 40% of the runtime. On a 300 Mhz Pentium II the total runtime was 15.07 seconds, and on a 533 LX164 it was 13.27. On trigonometric functions (tested in other programs), the Alpha seems to be at a slightly greater disadvantage. -- * Matthew B. Kennel/Institute for Nonlinear Science, UCSD - * "People who send spam to Emperor Cartagia... vanish! _They say_ that * there's a room where he has their heads, lined up in a row on a desk... * _They say_ that late at night, he goes there, and talks to them... _they *- say_ he asks them, 'Now tell me again, how _do_ you make money fast?'"