From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b79a29863eb727e7 X-Google-Attributes: gid111c93,public From: cekim@ix.netcom.com Subject: Re: gcc vs Dec Unix c Date: 1998/01/09 Message-ID: <884364975.2133262340@dejanews.com>#1/1 X-Deja-AN: 314357045 References: <884291935.1575288842@dejanews.com> <694nm1$74c$1@news2.xs4all.nl> X-Originating-IP-Addr: 207.93.163.98 (nas-nh3-34.ix.netcom.com) X-Authenticated-Sender: cekim@ix.netcom.com To: cekim@ix.netcom.com X-Http-User-Agent: Mozilla/4.04 [en] (X11; I; Linux 2.0.32 i686) Organization: Deja News Posting Service X-Article-Creation-Date: Fri Jan 09 16:56:15 1998 GMT Newsgroups: comp.os.linux.alpha In article <694nm1$74c$1@news2.xs4all.nl>, schj@xs1.xs4all.nl (Jaap Schellekens) wrote: > > fonte@pc2.nmrlab.hscsyr.edu wrote: > : We have a Dec Alpha (EV56-LX 533 MHz w/ a NCR PCI Ultra SCSI > : controller) running linux (RedHat 5.0). The floating point performance > : is poor. > > Are you sure about that? libm performance is rather poor on Linux/Alpha > but straight floating point (Say LU decomposition) is rather comparable > to DU. Maybe singeling out the problem functions can help you more than > taking the (expensive) dive in DU. > > cheers, > > jaap > I can tell you that the cos() function is one that is particularly slow in linux. I ran a loop using this very trivially 100 million times on an 164LX and a PPRO200. The PPRO with the -O flag took 1 min, 6 sec. The alpha (533MHz LX)took 6 min,53 sec!!!! Take the cos() out and run with the fp adds and multiplies in this loop that keep things moving, and those number change to 3 sec for the alpha and 4 sec for the PPRO. SO!. there is obvisouly a problem with the cos() function!!! Looking at the assembly output with the -O flag confirms that all of the problem rests in the cos() function as the rest of the code is pretty mundane and similar, save the additional loads and stores that come with RISCdom. I am running the stock RH4.2 on the alpha and 5.0 on the intel, so some of this is my fault. I am looking into my options for better optimization. -Mike -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet