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: Toon Moene Subject: Re: Redhat/Alpha computational performance???? Date: 1998/03/03 Message-ID: <6dhvm4$a4u$1@news.utrecht.NL.net>#1/1 X-Deja-AN: 330548093 References: <6d5453$sht@news1.newsguy.com> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha mbkennel@yahoo.com (Matt Kennel) wrote: [ I thought of answering this one instead of the reply to my own question about your code (much more productive :-) ] > I tried a variety of different programs. Apparently the standard functions > are so bad that they became the bottleneck in all of them. I profiled a > couple of them. > > I don't know what SPECfp programs do, but it's impossible to do optical > physics without exponentials, sine and cosine (over both R and C). You bet standard functions are not a large part (performance wise) of SPECfp programs, because that would be in conflict with the requirement that those programs "don't spend significant time in library routines" - a requirement that's not surprising if you take into account what SPECfp is trying to measure. > It's remarkable that it's so poor---apparently the functions are so much > worse than on x86 that it can negate all the advantage of a supposedly 2.5x > SPECmark advantage. Well, one of the answers to this question might be that on the PII the transcendentals are translated (inline) to the equivalent machine instructions, while on Alpha they have to be library calls (Note: I didn't check this - so don't quote me on it). This would at least forego the cost of making a subroutine call. OTOH, if usage of exp, sin and cos is so heavy in your program, why don't you use lookup tables; you'll bet we (using a rotated lat-lon grid for limited area weather forecasting) do not want to invoke lots of sin and cos routines, whereas for the coordinate transformations between regular and rotated lat-lon, one *has* to. -- Toon Moene (mailto:toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam