From: mccalpin@perelandra.cms.udel.edu (John D. McCalpin)
Subject: Re: Summary: Alpha Performance
Date: Thu, 24 Jun 1993 21:35:30 GMT [thread overview]
Message-ID: <C95An7.B65@news.udel.edu> (raw)
In-Reply-To: 20d2e7$845@sol.TIS.COM
In article <20d2e7$845@sol.TIS.COM> mjr@tis.com (Marcus J Ranum) writes:
>[...], but if you look at the
>before and after pictures, you'll see that HP and IBM suddenly
>picked up something like a 200% improvement on ONE floating point
>benchmark. That doesn't usually indicate that someone came up
>with a clever general optimization that's going to make most
>people's code run faster; that indicates that someone cracked
>the benchmark.
It is a very clear indication that the "benchmark" was not a real
application, and SPEC got bit by this one.
MATRIX300 has two characteristics that make it a bad benchmark code.
First, it has a single hot spot -- indeed, the single hot spot is the
entire code. Second, the hot spot was coded in a strikingly poor
manner. People who do numerical linear algebra have known for at least
a decade that the coding in MATRIX300 is a dumb way to do matrix
multiplication. In fact, MATRIX300 goes out of its way in being dumb,
by doing a matrix multiplication using a subroutine SGEMM, which does
the same thing as the standard BLAS3 routine, but with a different
calling sequence. The obvious way of writing matrix multiply as a
triply nested loop would have been much more efficient on most machines,
as well as significantly shorter! Instead, the MATRIX300 code writes
the Matrix-Matrix product (SGEMM) as a loop of calls to a Matrix-Vector
product subroutine (SGEMV), which is in turn written as a loop of calls
to a vector-vector product subroutine (SAXPY). Structured programming
at its silliest?
If MATRIX300 were a real application, it would have taken all of 10
minutes to replace the SGEMM call with a call to the vendor's
hand-optimized matrix multiply code, and the entire code would be
reduced to a series of calls to the vendors library routine. The code
that is present in MATRIX300 should be considered as a "last-resort"
hacked-together code for portability to those systems which do not have
a vendor-supplied matrix multiplication routine.
The performance of the vendors hand-coded matrix multiplication routine
is not a very interesting benchmark by itself because it provides
essentially no information that is not already provided by the LINPACK
1000x1000 results. (The performance characteristics of Gaussian
elimination and matrix multiply are essentially identical on
uniprocessors, though the matrix multiply is perhaps a bit easier to
code).
--
--
John D. McCalpin mccalpin@perelandra.cms.udel.edu
Assistant Professor mccalpin@brahms.udel.edu
College of Marine Studies, U. Del. John.McCalpin@mvs.udel.edu
next prev parent reply other threads:[~1993-06-24 21:35 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-21 14:36 Summary: Alpha Performance Glen Reesor
1993-06-21 21:45 ` Richard M. Venable
1993-06-22 14:35 ` Dileep Bhandarkar
1993-06-22 16:15 ` Glen Reesor
1993-06-22 18:02 ` John D. McCalpin
1993-06-22 19:02 ` Glen Reesor
1993-06-23 4:17 ` Ozan S. Yigit
1993-06-23 4:39 ` Doug Siebert
1993-06-23 9:08 ` Jos van Eijndhoven
1993-06-23 19:54 ` John DiMarco
1993-06-24 2:21 ` Vareck Bostrom
1993-06-24 7:31 ` Jos van Eijndhoven
1993-06-24 8:07 ` Casper H.S. Dik
1993-06-24 11:46 ` jesse neri
1993-07-24 12:16 ` Rob J. Nauta
1993-07-24 17:20 ` Steve Chapin
1993-07-26 22:17 ` Summary: Alpha Performance [really, SPEC#/MHz] John R. Mashey
1993-07-28 16:16 ` Paul Rockwell
[not found] ` <CAwIKv.KFM@odin.corp.sgi.com>
[not found] ` <238teh$k1o@usenet.pa.dec.com>
[not found] ` <CAy7CK.IMy@odin.corp.sgi.com>
1993-08-03 14:45 ` Summary: Alpha Performance Brent Sterner
1993-07-25 9:21 ` Jussi Eloranta
1993-07-28 1:55 ` David Willmore
1993-07-26 14:03 ` Jeffrey L. Sue
[not found] ` <1993Jul30.153910.11071@Rapnet.Sanders.Lockheed.Com>
[not found] ` <1993Aug2.180113.1@tango.cchs.su.edu.au>
1993-08-03 15:33 ` VMS Robustness Tony Burzio
1993-07-26 18:59 ` Summary: Alpha Performance Greg Franks
1993-07-26 19:33 ` Jussi Eloranta
1993-06-24 3:04 ` Ozan S. Yigit
1993-06-24 10:56 ` James Bonfield
1993-06-25 6:02 ` David Burren [Athos]
1993-06-23 22:06 ` Graphics Users
1993-06-22 19:58 ` furio ercolessi
1993-06-23 15:11 ` Patrick F. McGehearty
1993-06-23 21:30 ` Glen Reesor
1993-06-24 2:13 ` John Grabowski
1993-06-24 8:00 ` Jos van Eijndhoven
1993-06-27 12:54 ` Paul Repacholi
1993-06-24 15:08 ` Bob Koehler
1993-06-24 16:40 ` Glen Reesor
1993-07-02 21:05 ` Dileep Bhandarkar
1993-06-24 16:42 ` Marcus J Ranum
1993-06-24 18:41 ` Brent Sterner
1993-06-24 19:02 ` Douglas W. O'Neal
1993-06-24 20:22 ` Marcus J Ranum
1993-06-24 21:26 ` Marc Sabatella
1993-06-24 21:42 ` John D. McCalpin
1993-06-24 21:35 ` John D. McCalpin [this message]
1993-06-24 23:52 ` Rick Jones
1993-06-30 17:33 ` Dave Sill
1993-06-30 18:12 ` J. D. McDonald
1993-06-30 18:48 ` Chris Kalisiak
1993-06-30 19:07 ` Dave Sill
1993-07-02 20:17 ` Dileep Bhandarkar
1993-07-03 6:22 ` todd j. derr
1993-06-30 18:45 ` John R. Mashey
1993-06-30 22:08 ` furio ercolessi
1993-07-01 16:40 ` Arvind Aggarwal
1993-07-01 2:25 ` Matrix Multiply and KAP (Was: Re: Summary: Alpha Performance) Larry Meadows
1993-06-24 18:54 ` Summary: Alpha Performance Dave Bernard
1993-06-25 0:56 ` Marcus J Ranum
1993-06-25 12:36 ` ENOUGH (was Re: Summary: Alpha Performance) Gregory T. Byrd
1993-06-25 22:07 ` Mike Reaser
1993-06-25 23:17 ` ENOUGH Ralph Finch
1993-06-25 23:26 ` fourstones results on the DEC 3000/500 and DEC 3000/500X Gail L. Grant
1993-06-28 20:45 ` Summary: Alpha Performance Marc Sabatella
1993-06-24 17:10 ` Guy Dawson
[not found] ` <1993Jun22.144348.26782@ryn.mro4.dec.c <SOLID.93Jun23100608@piglet.piglet.otago.ac.nz>
1993-06-24 8:08 ` Pete KAISER
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