From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13198 invoked from network); 24 Jan 1999 05:01:16 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Jan 1999 05:01:16 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA13879 for ; Sat, 23 Jan 1999 23:34:02 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Sat, 23 Jan 1999 22:36:51 -0600 Received: by paralleldata.com from paralleldata.com (207.158.98.12::mail daemon; unverified,SLMail V2.5); Sat, 23 Jan 1999 22:36:48 -0600 Sender: "Wsb" Message-ID: <36AAB158.7FFA8C1E@paralleldata.com> Date: Sun, 24 Jan 1999 05:36:24 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Why Alpha? (aka: is it worth it?) References: <199901240309.TAA15579@netcom19.netcom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Munagala V. S. Ramanath wrote: > > > Michal Jaegermann wrote: > > > > > > Munagala V. S. Ramanath wrote: > > > > > > > > There was one guy who posted here a few weeks ago about running > > > > a loop which simply computed sqrt(). The 450MHz Pentium II > > > > outperformed the 533MHz Alpha. > > > > > > Big deal! Pentium has sqrt in silicon while Alpha, as RISC, in an > > > external library. > > > > Multiple RISC implementations have sqrt() in silicon. > > It can improve performance significantly just by not > > having the function call overhead. > > I'm just curious about areas where the PII outperforms the higher > clocked Alphas and what the reasons might be. Is it possible that > a tightly hand-coded inlined sqrt() on the Alpha could beat the > PII ? After all, the higher clock speed should mean something ... > Not many people have that little piece of code you describe. This is somewhat what I do though in my own code. I implement a sqrt() as a table lookup plus twiddle so I don't have to rely on anyone's sqrt() function call. What I do is not good to the ULP (unit of least precision, ie., last bit), but good enough for my algorithm. It is also faster than any silicon implementation I know of. Doing that sort of thing requires a good understanding of how your algorithm works. Anyway, my code is about twice as fast on a 533LX vs a PII400. I think PII can outperform Alpha on transcendentals and divide. Watch how you use those and you'll have fast code in general, not just Alphas. Note I use mainly FP calculations, very little is integer in the kernels I worry about performance on. Wes