Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Murx <chrisi@theo1.physik.uni-stuttgart.de>
Subject: Re: Compaq is sitting on a goldmine now that Linux is taking of
Date: 1998/11/26	[thread overview]
Message-ID: <365DA16B.DDDF2688@theo1.physik.uni-stuttgart.de> (raw)
In-Reply-To: 73k5gf$imn$1@infosun2.rus.uni-stuttgart.de

c.simmendinger@dlr.de wrote:

> The major bummer in this matrix multiply is memory access
> kap dealt with this quite reasonably.

Kap came up with this loop_unroll:

      subroutine MATMUL ( A, B, C, N )
       real A(N,N), B(N,N), C(N,N)
       integer N
       integer KII3, KII2, KII1
       do   I=1,N
        do   J=1,N
         A(I,J) = 0.
         KII2 = N - 7
         KII3 = (KII2 + 7) / 8
         KII1 = KII3 * 8 + 1
         do   K=1,KII2,8
          A(I,J) = A(I,J) + B(I,K) * C(K,J)
          A(I,J) = A(I,J) + B(I,K+1) * C(K+1,J)
          A(I,J) = A(I,J) + B(I,K+2) * C(K+2,J)
          A(I,J) = A(I,J) + B(I,K+3) * C(K+3,J)
          A(I,J) = A(I,J) + B(I,K+4) * C(K+4,J)
          A(I,J) = A(I,J) + B(I,K+5) * C(K+5,J)
          A(I,J) = A(I,J) + B(I,K+6) * C(K+6,J)
          A(I,J) = A(I,J) + B(I,K+7) * C(K+7,J)
         end do
         do   K=KII1,N,1
          A(I,J) = A(I,J) + B(I,K) * C(K,J)
         end do
        end do
       end do
    return
    end

Have to admit i never considered using the KAP
of this RS 6000 (wasn't even aware we actually have this)
so i'd think KAP can even do better, since this was just
a first clumsy test. Maybe it's actually capable of blocking ?
Dunno ?

Murx






  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 [this message]
1998-11-26  5:00   ` Murx
1998-11-26  5:00     ` Murx
1998-11-26  5:00       ` H.W. Stockman
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