Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Terje Mathisen <Terje.Mathisen@hda.hydro.com>
Subject: Re: Intel going to 0.18 micron in Q2/99?
Date: 1999/02/13	[thread overview]
Message-ID: <36C5F855.3EB4@hda.hydro.com> (raw)
In-Reply-To: 7a1ld4$3i4@dfw-ixnews10.ix.netcom.com

James Van Buskirk wrote:
> 
> Terje Mathisen wrote in message <36C442A0.6F26@hda.hydro.com>...
> >Toon Moene wrote:
> 
> >> 1. The 21264 (nor the new architecture handbook) have a isqrt.
> 
> >What does this mean? That there is no isqrt on 264?
> 
> >I seem to distinctly remember this as an interesting feature when the
> >Alpha team presented the 264 architecture a two or three years ago on an
> >IEEE conference in San Jose!
> 
> I'm not sure what isqrt means; candidates would be integer square
> root and reciprocal square root.  The 21264 has neither AFAIK but

Sorry, isqrt is just my short name for inverse (i.e. reciprocal!) sqrt.

> it does haves direct moves between integer and floating point
> registers and an FP hardware divider that does something like six
> bits/cycle and can run in parallel with the hardware square root
> unit, so both candidates, while not directly present, can proceed
> with enhanced throughput on a 21264.
> 
> >16 cycles for single is quite nice. :-)
> >
> >(Compared to 70 on Pentium+, which always calculates 80-bit results)
> 
> I thought PentiumPro chips calculate fsqrt in 28, 57, or 68 clocks
> depending on precision (AP-526).  It seems to me like a failure of

Thanks, I never manged to find this piece of info in the original PPro
documentation, i.e. the yellow NDA books.

> compiler technology that these hardware fsqrt instructions are really

> needed: A Pentium classic can attain over twice the floating point
> fsqrt throughput using its floating multiplier (at least for double
> precision arguments) and even a lowly 21164 can achieve 16 cycle
> throughput for double precision square roots if we aren't worried
> about an ulp or two roundoff error in the results.  Both results

This is the real culprit: SQRT is the most complicated operation with
exact IEEE semantics, it is indeed fairly easy to speed it up if you can
allow less than perfect results.

> could be faster if a lookup table were allowed. The compiler must
> spot opportunities to parallelize the square roots to reach these
> throughput levels, though, and current compilers rarely seem to
> take advantage of much potential parallelism at all.

I wrote code a couple of years ago to help a guy in sweden, doing
molecular simulations (7-day runs on Alpha, longer on PII, but not too
long due to hw sqrt):

The critical operation was the reciprocal distance, which had to be
calculated as the reciprocal square root of the squared (x,y,z) deltas.

Using a table lookup to kickstart the first round of an NR iteration,
and calculating 3 of them in parallel (matching the 3-atom H2O
molecules), the resulting simulation code ran almost exactly twice as
fast, i.e. 3.5 days instead of 7.

The minor ulp errors were too small to give any difference in a test run
of the simulation, all parameters were equal to the old results, when
printed with 10 decimal digits.

This is still somthing that a compiler cannot do on its own, not without
getting explicit permission by the user.

Terje

-- 
- <Terje.Mathisen@hda.hydro.com>
Using self-discipline, see http://www.eiffel.com/discipline
"almost all programming can be viewed as an exercise in caching"



  reply	other threads:[~1999-02-13  5:00 UTC|newest]

Thread overview: 129+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <36BAC1F5.9BFAFA51@strategypartners.com>
     [not found] ` <79fi4s$609$1@msunews.cl.msu.edu>
     [not found]   ` <36BB5FEC.E4F308C6@strategypartners.com>
1999-02-06  5:00     ` Intel going to 0.18 micron in Q2/99? Terry C. Shannon
1999-02-06  5:00       ` TTK Ciar
1999-02-06  5:00         ` Stephen Maudsley
1999-02-06  5:00         ` Terry C. Shannon
1999-02-06  5:00           ` TTK Ciar
1999-02-06  5:00           ` Zalman Stern
1999-02-06  5:00             ` Terry C. Shannon
1999-02-06  5:00       ` Daytripper
1999-02-08  5:00         ` Rob Young
1999-02-08  5:00           ` Rob Rodgers
1999-02-08  5:00             ` Zalman Stern
1999-02-08  5:00             ` Rob Young
1999-02-08  5:00               ` Rob Rodgers
1999-02-08  5:00                 ` Jeffrey J. Potoff
1999-02-09  5:00                   ` Rob Rodgers
1999-02-08  5:00                     ` Jeffrey J. Potoff
1999-02-09  5:00                 ` Ketil Z Malde
1999-02-09  5:00                 ` Peter da Silva
1999-02-09  5:00                   ` Leon Muratov
1999-02-09  5:00                     ` Dave Cherkus
1999-02-10  5:00                       ` Ketil Z Malde
1999-02-10  5:00                         ` Terry Murphy
1999-02-11  5:00                           ` Maynard Handley
1999-02-12  5:00                             ` Casper H.S. Dik - Network Security Engineer
1999-02-12  5:00                             ` Sander Vesik
1999-02-12  5:00                               ` Maynard Handley
1999-02-13  5:00                                 ` Zalman Stern
1999-02-13  5:00                                 ` Sander Vesik
1999-02-13  5:00                                   ` TTK Ciar
1999-02-13  5:00                                     ` JohnC
1999-02-13  5:00                                       ` TTK Ciar
1999-02-13  5:00                                         ` Alex Rosenberg
1999-02-28  5:00                                     ` Chris Torek
1999-02-12  5:00                             ` Chris
1999-02-12  5:00                               ` Larry Kilgallen
1999-02-12  5:00                               ` Bruce Hoult
1999-02-12  5:00                               ` Pete Zaitcev
1999-02-12  5:00                                 ` cquirke
1999-02-12  5:00                               ` Peter da Silva
1999-02-13  5:00                             ` Zalman Stern
     [not found]                               ` <36c5978f.4874036@news.mv.net>
1999-02-14  5:00                                 ` Zalman Stern
1999-02-14  5:00                                 ` Jon Hart
     [not found]                             ` <9 <casper.918824924@nl-usenet.sun.com>
1999-02-13  5:00                               ` Zalman Stern
1999-02-13  5:00                                 ` Serguei Patchkovskii
1999-02-13  5:00                                   ` Roger Barnett
1999-02-10  5:00                         ` cquirke
1999-02-10  5:00                           ` Andy Glew
1999-02-10  5:00                             ` TTK Ciar
1999-02-11  5:00                               ` Erik Corry
1999-02-11  5:00                                 ` Ketil Z Malde
1999-02-11  5:00                                   ` Erik Corry
1999-02-11  5:00                                 ` Larry Kilgallen
1999-02-11  5:00                                   ` Ketil Z Malde
1999-02-11  5:00                                     ` St. Suika Roberts
1999-02-11  5:00                                       ` Jeffrey J. Potoff
1999-02-11  5:00                                         ` St. Suika Roberts
1999-02-12  5:00                                           ` Serguei Patchkovskii
1999-02-12  5:00                                             ` Jeffrey J. Potoff
1999-02-11  5:00                                     ` Jeffrey J. Potoff
1999-02-12  5:00                                       ` Ketil Z Malde
1999-02-12  5:00                                         ` David Hinds
1999-02-12  5:00                                           ` Serguei Patchkovskii
1999-02-14  5:00                                             ` Jan Vorbrueggen
1999-02-14  5:00                                               ` Michael Meissner
1999-02-14  5:00                                               ` Serguei Patchkovskii
1999-02-15  5:00                                                 ` Chris
1999-02-15  5:00                                                   ` John F Carr
1999-02-15  5:00                                                 ` Jan Vorbrueggen
1999-02-15  5:00                                             ` Robert Harley
1999-02-15  5:00                                               ` Robert Harley
1999-02-15  5:00                                               ` Jerry Leichter
1999-02-16  5:00                                                 ` Paul Repacholi
1999-02-17  5:00                                                   ` Adam Price
1999-02-17  5:00                                                     ` Jeffrey J. Potoff
1999-02-16  5:00                                                 ` Robert Harley
1999-02-16  5:00                                               ` Amy J. Gleklen
1999-02-12  5:00                                     ` Larry Kilgallen
1999-02-12  5:00                                       ` Ketil Z Malde
1999-02-12  5:00                                         ` Terry C. Shannon
1999-02-10  5:00                           ` Thomas Womack
1999-02-11  5:00                             ` Ketil Z Malde
1999-02-11  5:00                           ` Bernd Paysan
1999-02-11  5:00                         ` Carlie Coats
1999-02-11  5:00                           ` Peter Seebach
1999-02-11  5:00                             ` H.W. Stockman
1999-02-12  5:00                               ` Jeffrey J. Potoff
1999-02-12  5:00                               ` Terry C. Shannon
1999-02-12  5:00                                 ` Jan Vorbrueggen
1999-02-12  5:00                                   ` Timothy J. Bogart
1999-02-12  5:00                                   ` andrew.harrison@uk.sun.nospam.com
1999-02-12  5:00                                     ` Rob Young
1999-02-12  5:00                                       ` Timothy J. Bogart
1999-02-12  5:00                                       ` Andy Glew
1999-02-12  5:00                                         ` John McCalpin
1999-02-15  5:00                                         ` Achim Gratz
1999-02-15  5:00                                       ` andrew.harrison@uk.sun.nospam.com
1999-02-12  5:00                                 ` Erik Corry
1999-02-10  5:00                       ` Bernd Paysan
1999-02-11  5:00                         ` Leon Muratov
1999-02-11  5:00                           ` Toon Moene
1999-02-11  5:00                             ` H.W. Stockman
1999-02-12  5:00                               ` Toon Moene
1999-02-12  5:00                                 ` Przemek Klosowski
1999-02-12  5:00                             ` Terje Mathisen
1999-02-12  5:00                               ` Toon Moene
1999-02-12  5:00                                 ` Terje Mathisen
1999-02-12  5:00                                   ` James Van Buskirk
1999-02-13  5:00                                     ` Terje Mathisen [this message]
1999-02-24  5:00                                       ` Paul Hsieh
1999-02-10  5:00                 ` Anders Blicher Petersen
1999-02-08  5:00               ` Henrik Klagges
1999-02-09  5:00                 ` John  Bayko
1999-02-16  5:00               ` Jan Vorbrueggen
1999-02-11  5:00           ` Paul Repacholi
1999-02-14  5:00         ` Nack
1999-02-15  5:00 ` Dave Cherkus
1999-02-15  5:00   ` Zalman Stern
1999-02-16  5:00     ` Toon Moene
1999-02-16  5:00       ` Zalman Stern
1999-02-16  5:00         ` Toon Moene
1999-02-12  5:00 M Sweger
1999-02-12  5:00 ` Jan Vorbrueggen
  -- strict thread matches above, loose matches on Subject: below --
1999-02-12  5:00 M Sweger
1999-02-12  5:00 ` Christian Bau
1999-02-12  5:00 ` TTK Ciar
1999-02-12  5:00 ` Jan Vorbrueggen
1999-02-16  5:00   ` Donald Dossa
1999-02-13  5:00 ` Bruce Hoult
1999-02-13  5:00   ` Zalman Stern
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox