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/09 Message-ID: #1/1 X-Deja-AN: 332765409 References: <6d5453$sht@news1.newsguy.com> <6dhvm4$a4u$1@news.utrecht.NL.net> Reply-To: mbkennel yahoo.com Organization: University of California at San Diego Newsgroups: comp.os.linux.alpha On 3 Mar 1998 22:19:48 GMT, Toon Moene wrote: :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. OK, I'll bite. What is SPECfp trying to measure by virtue of banning benchmarks which spend time in library routines? It sort of seems analogous to banning benchmarks run on computers with memory caching turned on. Certainly it introduces a complexity, but the complexity is really there in people's use. I'll put forth the argument that the math libraries for standard functions (exp, sin, cos, log & complex versions of such) really *are* special. The concepts they represent are timeless and will be essential to mathematical computation as long as our species stays alive. If SPECfp ignores this, the benchmarks are doing a disservice to the community, and apparently leading computer designers into choices--often very expensive to reverse--not appropriate for some large classes of mathematical users. :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. Maybe, but we're using double precision complex. Unfortunately I suspect we need fairly decent accuracy since we're looking at subtle dynamical effects which accumulate over hundreds of thousands of iterations (each iteration composed of 2000 integration timesteps). Inaccuracies or weirdities which transmit any excess high-frequency 'junk' into the system will be preserved and amplified. Indeed those are the effects we really care about---nonlinearities on the nondimensional scale of 1 part in 10^9 or 10^10 matter to us. e.g. if sin^2 + cos^2 isn't quite 1 that means that false energy is being inserted into or dissipated from the system improperly. -- * 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?'"