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/18 Message-ID: <72vvv9$kac$1@tesla.EECS.Berkeley.EDU>#1/1 X-Deja-AN: 413361468 References: <3643A2A1.DECD63A@cs.sunysb.edu> <3651C5A1.C2B6C17@west.net> <3651D0D7.50ADB12F@frankfurt.netsurf.de> <3653768C.FD9D4815@west.net> Organization: UC Berkeley Newsgroups: comp.os.linux.alpha In article <3653768C.FD9D4815@west.net>, Randall Parker wrote: >He wants to write single precision versions of exp, sqrt and log if single precision versions >will be faster than double precision versions. He really doesn't need the extra precision in >the results if the single precision versions can actually execute more rapidly. Do you think >that it is worth trying to write single precision versions to get an additional increase in >speed? ie would it be faster if done right? Using single precision to speed things up is an interesting idea. I think it depends on exactly how much time it takes to compute an exp/sqrt/log compared to how long it typically takes you to access memory in your code. 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..... PeterM