From: "H.W. Stockman" <hwstock@wizard.com>
Subject: Re: Compaq is sitting on a goldmine now that Linux is taking of
Date: 1998/11/26 [thread overview]
Message-ID: <365E0F25.7B30@wizard.com> (raw)
In-Reply-To: 365DB99E.4B33E70D@theo1.physik.uni-stuttgart.de
Murx wrote:
>
> Murx wrote:
>
> > In doing so it reduced run-time to SIX SECONDS
> > THIS MEANS THIS BEATS DEC BY A FACTOR OF *TEN*
> > HOLY MOSES !????
>
> Well, sorry for the boldface, enthusiasm caught me ;-)
> It's still a bit short of Goto's gemm.
> (6 secs would correspond to ~350 Mflops).
> If i'd manage to tell KAP that we'd rather
> allow for a latency of 4 instead of 2 this figure
> might actually reach the performance of the DXML.
>
> Considering the original code was:
>
> subroutine matmul(a,b,c,n)
> real a(n,n),b(n,n),c(n,n)
> integer n
> do i = 1,n
> do j = 1,n
> a(i,j) = 0
> do k = 1,n
> a(i,j) = a(i,j) + b(i,k) * c(k,j)
> continue
> continue
> continue
> end
>
As I'm sure you are aware, you've started with
the most common, but most inefficient, manner
of multiplying two matrices -- a complete
cache thrasher with poor data re-use. My experience
with KAP long ago, gave me the impression that
KAP it is trained to recognize inefficient algorithms,
and replace them wholesale.
Simply reordering the loops up above, or transposing
one matrix first so columns are multiplied by
columns (instead of mixed column-row), will probably
give a factor 2 to 4 speed increase. Some compilers
are smart enough to do that.
next prev parent reply other threads:[~1998-11-26 5:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-26 5:00 Compaq is sitting on a goldmine now that Linux is taking of c.simmendinger
1998-11-26 5:00 ` Murx
1998-11-26 5:00 ` Murx
1998-11-26 5:00 ` Murx
1998-11-26 5:00 ` H.W. Stockman [this message]
1998-11-27 5:00 ` Murx
1998-11-27 5:00 ` Wai-Sun Chia
1998-11-27 5:00 ` Murx
1998-11-27 5:00 ` Xavier GALLEZ
1998-11-27 5:00 ` Christian Hasse
-- strict thread matches above, loose matches on Subject: below --
1998-11-18 5:00 Compaq is sitting on a goldmine now that Linux is taking of expoentially Peter Mardahl
1998-11-19 5:00 ` Compaq is sitting on a goldmine now that Linux is taking of Greg Lindahl
1998-11-20 5:00 ` H.W. Stockman
1998-11-21 5:00 ` Greg Lindahl
1998-11-24 5:00 ` IX Corp.
1998-11-24 5:00 ` Murx
1998-11-24 5:00 ` Adam C. Powell, IV
1998-11-24 5:00 ` Peter Mardahl
1998-11-24 5:00 ` Robert Harley
1998-11-26 5:00 ` Murx
1998-11-26 5:00 ` Peter Mardahl
1998-11-26 5:00 ` Murx
1998-11-26 5:00 ` Peter Mardahl
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