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: Ian Tester Subject: Re: Alpha's floating point performance Date: 1998/11/19 Message-ID: #1/1 X-Deja-AN: 413410827 Cache-Post-Path: apu.stonemicro.com.au!ian@callisto.stone.oz.au References: <3643A2A1.DECD63A@cs.sunysb.edu> <3651C5A1.C2B6C17@west.net> <3651D0D7.50ADB12F@frankfurt.netsurf.de> <3653768C.FD9D4815@west.net> <72vvv9$kac$1@tesla.EECS.Berkeley.EDU> To: Peter Mardahl X-Sender: ian@callisto.stone.oz.au X-Server-Date: 19 Nov 1998 05:53:10 GMT Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: Stonemicro Systems. Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha On 18 Nov 1998, Peter Mardahl wrote: > For our simulation code, which does lots of adds and multiplies and > almost no divisions, sqrts, logs, or any other complex functions, > (this is a deliberate performance optimization!) > we get a 1.7 or so speedup by using single precision. I don't > think the adds and multiplies happen any faster, really. I think > the memory access is much improved: the data cache suddenly looks twice > as large, the bandwidth gives 2x as much throughput per flop..... That's some interesting results. I don't know about the Alpha hardware, but I was under the impression that most modern CPU's simplify things by only having the hardware for double precision operations. This usually means that single precision is actually slower since the data has to be converted both before and after each operation. 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. 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. bye 8<--------8<--------8<--------8<--------8<--------8<--------8<-------- ian@stonemicro.com.au \7\ LINUX: because geeks \7\ Ian Tester http://imroy.home.ml.org/ \7\ will find a way \7\ *8)#