From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,94b6222e337d2ab8 X-Google-Attributes: gid111c93,public From: "Jack W. Crenshaw" Subject: Re: Alpha's floating point performance Date: 1998/11/23 Message-ID: <3659D27F.7782@magicnet.net>#1/1 X-Deja-AN: 414873137 Content-Transfer-Encoding: 7bit References: <3643A2A1.DECD63A@cs.sunysb.edu> <3653768C.FD9D4815@west.net> <72vvv9$kac$1@tesla.EECS.Berkeley.EDU> <731iaq$lsc$1@tesla.EECS.Berkeley.EDU> Content-Type: text/plain; charset=us-ascii Organization: Crenshaw Technologies Mime-Version: 1.0 Reply-To: jcrens@magicnet.NOSPAM.net Newsgroups: comp.os.linux.alpha Peter Mardahl wrote: > > Alpha has hardware instructions for dealing with single precision. > I think you're right in that the same execution units > are used for all precisions, > but I suspect that the execution units are organized in such a way that > either there is no conversion needed, or conversion is so fast that > the ops are no slower. > > >I take it your code is a "real world" application? I'm guessing that your > >code is faster because you have to do something with the results of the > >calculations. The bandwidth saving out-weighs any overhead to convert to > >and from double precision. > > Well, certainly we go through a lot of data and update it. > > >What if you do some highly artificial do-a-billion-multiplies-in-a-row > >benchmark? Just find out the raw performance of the floating-point > >hardware. > > Well, perhaps you have an alpha yourself, and can do this? > But an Alpha should be able to do 1 add and 1 multiply per clock tick, > if you give it a simple benchmark. > > PM Perhaps more to the point is, does the Alpha FP unit include trig functions, log, exp, etc., as the Intel part does? If so, there is nothing to be gained by trying to write one's own routines. OTOH, if it doesn't, there is _MUCH_ to be gained, because the extra precision req'd for double precision makes all the power series considerably longer. Jack