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: peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: Alpha's floating point performance Date: 1998/11/19 Message-ID: <731iaq$lsc$1@tesla.EECS.Berkeley.EDU>#1/1 X-Deja-AN: 413553205 References: <3643A2A1.DECD63A@cs.sunysb.edu> <3653768C.FD9D4815@west.net> <72vvv9$kac$1@tesla.EECS.Berkeley.EDU> Organization: UC Berkeley Newsgroups: comp.os.linux.alpha In article , Ian Tester wrote: >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, >> 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. 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