From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,36e5e519b6b43fb X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,10dc57790e0ead82 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,10dc57790e0ead82 X-Google-Attributes: gid110292,public From: Terje Mathisen Subject: Re: Intel going to 0.18 micron in Q2/99? Date: 1999/02/13 Message-ID: <36C5F855.3EB4@hda.hydro.com>#1/1 X-Deja-AN: 444091393 Content-Transfer-Encoding: 7bit References: <36BAC1F5.9BFAFA51@strategypartners.com> <36bf003a.43955923@news.pressroom.com> <1999Feb8.125903.1@eisner> <36bf4c2c.2244951@news.pressroom.com> <79o94v$4io@web.nmti.com> <79po7u$e57$1@nnrp1.dejanews.com> <36c0a13c.0@news.destek.net> <79ro7d$6ic$1@nnrp1.dejanews.com> <79v3uh$5rm$1@nnrp1.dejanews.com> <36C333F7.AF01425B@moene.indiv.nluug.nl> <36C3F2C1.7DF6805@hda.hydro.com> <36C41369.E4BF6985@moene.indiv.nluug.nl> <36C442A0.6F26@hda.hydro.com> <7a1ld4$3i4@dfw-ixnews10.ix.netcom.com> Content-Type: text/plain; charset=us-ascii Organization: Hydro Mime-Version: 1.0 Newsgroups: comp.arch,comp.sys.intel,comp.sys.dec 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 -- - Using self-discipline, see http://www.eiffel.com/discipline "almost all programming can be viewed as an exercise in caching"