* Re: Compaq is sitting on a goldmine now that Linux is taking of @ 1998-11-26 5:00 c.simmendinger 1998-11-26 5:00 ` Murx 1998-11-27 5:00 ` Xavier GALLEZ 0 siblings, 2 replies; 22+ messages in thread From: c.simmendinger @ 1998-11-26 5:00 UTC (permalink / raw) That was a plain matrix multiply. i.e: non-blocked, no loop-unroll etc. Some figures for 1000x1000 egcs1.1b (-O3 -funroll-loops -fexpensive-optimizations) 533Mhz/4mb cache : 81s Kap(rs 6000)/egcs some as above: 56s For comparison 500Mhz DU 8MB cache: 62ms kap/DU 52s The major bummer in this matrix multiply is memory access kap dealt with this quite reasonably. DU opt was -O4 Murx ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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-27 5:00 ` Xavier GALLEZ 1 sibling, 1 reply; 22+ messages in thread From: Murx @ 1998-11-26 5:00 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` Murx @ 1998-11-26 5:00 ` Murx 1998-11-26 5:00 ` Murx 0 siblings, 1 reply; 22+ messages in thread From: Murx @ 1998-11-26 5:00 UTC (permalink / raw) Murx wrote: > 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: Total nonsense ! No parameters to KAP now. It just came up with this real insane version: subroutine MATMUL ( A, B, C, N ) real A(N,N), B(N,N), C(N,N), D integer N integer KII27, KII26, KII25, KII24, KII23, KII22, KII21, X KII20, KII19, KII18, KII17, KII16, KII15, KII14, KII13 X , KII12, KII11, KII10, KII9, KII8, KII7, KII6, KII5, X KII4, KII3, KII2, KII1 real KRR16, KRR15, KRR14, KRR13, KRR12, KRR11, KRR10, X KRR9, KRR8, KRR7, KRR6, KRR5, KRR4, KRR3, KRR2, KRR1 logical KLL8, KLL7, KLL6, KLL5, KLL4, KLL3, KLL2, KLL1 KII4 = mod (N - 1, 72) + 1 KII9 = mod (N - 1, 72) + 1 KII14 = mod (N - 1, 72) + 1 KII21 = max0 (N / 4, 0) KII20 = KII21 * 4 + 1 do J=1,N do I=1,N-3,4 A(I,J) = 0. A(I+1,J) = 0. A(I+2,J) = 0. A(I+3,J) = 0. end do do I=KII20,N,1 A(I,J) = 0. end do end do KII2 = 1 KII1 = KII4 do KII5=1,N,72 KII3 = KII2 + KII1 - 1 KII7 = 1 KII6 = KII9 do KII10=1,N,72 KII8 = KII7 + KII6 - 1 KII12 = 1 KII11 = KII14 KII16 = KII8 - KII7 + 1 KII17 = KII8 - KII7 + 1 KII18 = KII8 - KII7 + 1 KII19 = KII8 - KII7 + 1 KLL5 = KII16 .gt. 0 KLL6 = KII17 .gt. 0 KLL7 = KII18 .gt. 0 KLL8 = KII19 .gt. 0 KII23 = (KII8 - KII7 + 1) / 4 KII22 = KII7 + KII23 * 4 KII25 = (KII8 - KII7 + 1) / 4 KII24 = KII7 + KII25 * 4 KII27 = (KII8 - KII7 + 1) / 4 KII26 = KII7 + KII27 * 4 do KII15=1,N,72 KII13 = KII12 + KII11 - 1 KLL1 = KLL5 KLL2 = KLL6 do J=KII2,KII3-2,3 if (KLL1) then do I=KII12,KII13-2,3 KRR1 = A(I,J) KRR2 = A(I+1,J) KRR3 = A(I+2,J) KRR4 = A(I,J+1) KRR5 = A(I+1,J+1) KRR6 = A(I+2,J+1) KRR7 = A(I,J+2) KRR8 = A(I+1,J+2) KRR9 = A(I+2,J+2) do K=KII7,KII8,1 KRR1 = KRR1 + B(I,K) * C(K,J) KRR2 = KRR2 + B(I+1,K) * C(K,J) KRR3 = KRR3 + B(I+2,K) * C(K,J) KRR4 = KRR4 + B(I,K) * C(K,J+1) KRR5 = KRR5 + B(I+1,K) * C(K,J+1) KRR6 = KRR6 + B(I+2,K) * C(K,J+1) KRR7 = KRR7 + B(I,K) * C(K,J+2) KRR8 = KRR8 + B(I+1,K) * C(K,J+2) KRR9 = KRR9 + B(I+2,K) * C(K,J+2) end do A(I,J) = KRR1 A(I+1,J) = KRR2 A(I+2,J) = KRR3 A(I,J+1) = KRR4 A(I+1,J+1) = KRR5 A(I+2,J+1) = KRR6 A(I,J+2) = KRR7 A(I+1,J+2) = KRR8 A(I+2,J+2) = KRR9 end do end if if (KLL2) then do I=I,KII13,1 KRR10 = A(I,J) KRR11 = A(I,J+1) KRR12 = A(I,J+2) do K=KII7,KII8-3,4 KRR10 = KRR10 + B(I,K) * C(K,J) KRR11 = KRR11 + B(I,K) * C(K,J+1) KRR12 = KRR12 + B(I,K) * C(K,J+2) KRR10 = KRR10 + B(I,K+1) * C(K+1,J) KRR11 = KRR11 + B(I,K+1) * C(K+1,J+1) KRR12 = KRR12 + B(I,K+1) * C(K+1,J+2) KRR10 = KRR10 + B(I,K+2) * C(K+2,J) KRR11 = KRR11 + B(I,K+2) * C(K+2,J+1) KRR12 = KRR12 + B(I,K+2) * C(K+2,J+2) KRR10 = KRR10 + B(I,K+3) * C(K+3,J) KRR11 = KRR11 + B(I,K+3) * C(K+3,J+1) KRR12 = KRR12 + B(I,K+3) * C(K+3,J+2) end do do K=KII22,KII8,1 KRR10 = KRR10 + B(I,K) * C(K,J) KRR11 = KRR11 + B(I,K) * C(K,J+1) KRR12 = KRR12 + B(I,K) * C(K,J+2) end do A(I,J) = KRR10 A(I,J+1) = KRR11 A(I,J+2) = KRR12 end do end if end do KLL3 = KLL7 KLL4 = KLL8 do J=J,KII3,1 if (KLL3) then do I=KII12,KII13-2,3 KRR13 = A(I,J) KRR14 = A(I+1,J) KRR15 = A(I+2,J) do K=KII7,KII8-3,4 KRR13 = KRR13 + B(I,K) * C(K,J) KRR14 = KRR14 + B(I+1,K) * C(K,J) KRR15 = KRR15 + B(I+2,K) * C(K,J) KRR13 = KRR13 + B(I,K+1) * C(K+1,J) KRR14 = KRR14 + B(I+1,K+1) * C(K+1,J) KRR15 = KRR15 + B(I+2,K+1) * C(K+1,J) KRR13 = KRR13 + B(I,K+2) * C(K+2,J) KRR14 = KRR14 + B(I+1,K+2) * C(K+2,J) KRR15 = KRR15 + B(I+2,K+2) * C(K+2,J) KRR13 = KRR13 + B(I,K+3) * C(K+3,J) KRR14 = KRR14 + B(I+1,K+3) * C(K+3,J) KRR15 = KRR15 + B(I+2,K+3) * C(K+3,J) end do do K=KII24,KII8,1 KRR13 = KRR13 + B(I,K) * C(K,J) KRR14 = KRR14 + B(I+1,K) * C(K,J) KRR15 = KRR15 + B(I+2,K) * C(K,J) end do A(I,J) = KRR13 A(I+1,J) = KRR14 A(I+2,J) = KRR15 end do end if if (KLL4) then do I=I,KII13,1 KRR16 = A(I,J) do K=KII7,KII8-3,4 KRR16 = KRR16 + B(I,K) * C(K,J) KRR16 = KRR16 + B(I,K+1) * C(K+1,J) KRR16 = KRR16 + B(I,K+2) * C(K+2,J) KRR16 = KRR16 + B(I,K+3) * C(K+3,J) end do do K=KII26,KII8,1 KRR16 = KRR16 + B(I,K) * C(K,J) end do A(I,J) = KRR16 end do end if end do KII12 = KII13 + 1 KII11 = 72 end do KII7 = KII8 + 1 KII6 = 72 end do KII2 = KII3 + 1 KII1 = 72 end do end In doing so it reduced run-time to SIX SECONDS THIS MEANS THIS BEATS DEC BY A FACTOR OF *TEN* HOLY MOSES !???? Murx ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 ` Wai-Sun Chia 0 siblings, 2 replies; 22+ messages in thread From: Murx @ 1998-11-26 5:00 UTC (permalink / raw) 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 it's sort of amazing. Maybe the question isn't : 1. When will DEC port it's compilers but rather: 2. Where to get a KAP preprocessor ? Do i have this already on some old wreck ? And another question: 3.What should my code look like to meet the requirements of KAP rather than the requirements of EGCS/GEM, provided i'm too lazy to do cache-blocking, loop-unrolling by hand each and every time? Coz this thing is just about as amazing as DEC's compiler (in that case 10 times as amazing, but i admit it's an easy problem (brings us back to 3.)) Murx ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 1 sibling, 1 reply; 22+ messages in thread From: H.W. Stockman @ 1998-11-26 5:00 UTC (permalink / raw) 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. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` H.W. Stockman @ 1998-11-27 5:00 ` Murx 0 siblings, 0 replies; 22+ messages in thread From: Murx @ 1998-11-27 5:00 UTC (permalink / raw) H.W. Stockman wrote: > 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. Yeah, sure enough. But the point is: Provided your code is rather simple, KAP seems smart enough to do cache-blocking. Which is something i hadn't expected at all. > My experience > with KAP long ago, gave me the impression that > KAP it is trained to recognize inefficient algorithms, > and replace them wholesale. Interesting comment. Do in understand this correctly: You are saying that KAP actually realized it's a matrix-multiply and replaced this, rather than to optimize the code ? Would imply that KAP in general is *not* able to do cache-blocking ? Christian ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` Murx 1998-11-26 5:00 ` H.W. Stockman @ 1998-11-27 5:00 ` Wai-Sun Chia 1998-11-27 5:00 ` Murx 1 sibling, 1 reply; 22+ messages in thread From: Wai-Sun Chia @ 1998-11-27 5:00 UTC (permalink / raw) Murx wrote: > Maybe the question isn't : > 1. When will DEC port it's compilers but rather: > 2. Where to get a KAP preprocessor ? > Do i have this already on some old wreck ? So send them email! Let DEC know what you want. But pls don't do anything unless you're actually willing to _PAY_ for a KAP/C/C++ product. Also pls state how much you're willing to pay. You can send mail to mailto:jon.hall@digital.com > And another question: > 3.What should my code look like to meet > the requirements of KAP rather than the requirements > of EGCS/GEM, provided i'm too lazy to do cache-blocking, > loop-unrolling by hand each and every time? > Coz this thing is just about as amazing > as DEC's compiler (in that case 10 times as amazing, > but i admit it's an easy problem (brings us back to 3.)) So can you imagine how fast your code will run with a DEC C/KAP product on Digital Unix? ;-) Keep the Alpha faith! -- Wai-Sun Chia ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-27 5:00 ` Wai-Sun Chia @ 1998-11-27 5:00 ` Murx 0 siblings, 0 replies; 22+ messages in thread From: Murx @ 1998-11-27 5:00 UTC (permalink / raw) Wai-Sun Chia wrote: > So can you imagine how fast your code will run with a DEC C/KAP product > on Digital Unix? ;-) Yeah i can :-) It would be about half the speed (dxml) i get right now with egcs/linux (goto) ;-) Grin :-) Christian ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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-27 5:00 ` Xavier GALLEZ 1998-11-27 5:00 ` Christian Hasse 1 sibling, 1 reply; 22+ messages in thread From: Xavier GALLEZ @ 1998-11-27 5:00 UTC (permalink / raw) c.simmendinger@dlr.de wrote in message <73k5gf$imn$1@infosun2.rus.uni-stuttgart.de>... >That was a plain matrix multiply. >i.e: non-blocked, no loop-unroll etc. >Some figures for 1000x1000 >egcs1.1b (-O3 -funroll-loops -fexpensive-optimizations) >533Mhz/4mb cache : 81s >Kap(rs 6000)/egcs some as above: 56s >For comparison 500Mhz DU >8MB cache: 62ms >kap/DU 52s >The major bummer in this matrix multiply is memory access >kap dealt with this quite reasonably. >DU opt was -O4 "-O4" is not a good option for DU. Try "-fast", it works much better. Would you mind to try this and post the results on this newsgroup ? I would be very much interested in your results. Thanks in advance, Xavier ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-27 5:00 ` Xavier GALLEZ @ 1998-11-27 5:00 ` Christian Hasse 0 siblings, 0 replies; 22+ messages in thread From: Christian Hasse @ 1998-11-27 5:00 UTC (permalink / raw) Xavier GALLEZ wrote: > "-O4" is not a good option for DU. Try "-fast", it works much better. Just to be precise, the following is taken from `man f77`: -fast Sets the following command options that can improve run-time performance: -assume noaccuracy_sensitive, -align dcommons, -math_library fast, and -O4 (the default). Two things to note 1) it also invokes -O4, so it can't be that bad 2) -O4 is default if you don't give any option to the compiler regarding optimization. Christian ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of expoentially @ 1998-11-18 5:00 Peter Mardahl 1998-11-19 5:00 ` Compaq is sitting on a goldmine now that Linux is taking of Greg Lindahl 0 siblings, 1 reply; 22+ messages in thread From: Peter Mardahl @ 1998-11-18 5:00 UTC (permalink / raw) In article <365378B5.52BD636@west.net>, Randall Parker <rgparker_nospam@west.net> wrote: >The problem as I see it is that Intel is ahead in semiconductor process >technology. Imagine, DEC comes out with a new Alpha and it starts on the >.35u process technology. Meanwhile, Intel is shipping massive amounts of >product on a .25u process and are working on .18u production. I think DEC realized this, which is why they went fabless. They couldn't keep up with Intel on fab investment. Samsung, however, is a giant, and is busily upgrading their processes to .25 and .18. DEC also forced Intel to agree to fab Alphas for DEC. IBM also has exciting fab capabilities, but I don't know if they'd be willing to fab alphas, which are direct competitors: IBM has both PowerPC and Power3 to worry about. The unfortunate lateness of the 21264 really hurt DEC's position. If they'd managed to ship 21264 a year and a half ago, as originally promised.... Instead, they're shipping them in 2-6 months, and pricing them the way they could have if they'd shipped them 1.5 years ago, instead of pricing them to compete on price/perf with Intel's current offerings. >Will Intel be out with .18u processors before DEC/Compaq/whoever gets a >21264 into the hands of 3rd party system makers? I don't think anything on .18u is due from intel until 2h 99, but we'll see. I think 21264 will be available in both .35 and .25 in 1h 99, but we'll see about that too. 21264a and 21364 are forecast to come out in .18u in 2000. PeterM ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 ` Greg Lindahl 1998-11-20 5:00 ` H.W. Stockman 0 siblings, 1 reply; 22+ messages in thread From: Greg Lindahl @ 1998-11-19 5:00 UTC (permalink / raw) peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes: > Instead, they're shipping them in 2-6 months, and pricing them the way > they could have if they'd shipped them 1.5 years ago, instead of > pricing them to compete on price/perf with Intel's current offerings. Myth. How much does a 4-processor PII@450 box cost? That's similar to the 264DP. You haven't seen real pricing for single-cpu 21264 systems yet. -- g ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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. 0 siblings, 2 replies; 22+ messages in thread From: H.W. Stockman @ 1998-11-20 5:00 UTC (permalink / raw) Greg Lindahl wrote: [...] > Myth. How much does a 4-processor PII@450 box cost? That's similar to > the 264DP. You haven't seen real pricing for single-cpu 21264 systems > yet. Anyone care to guess when 21264 boxes will become commodity items? I'm in the market as of Jan 99, and I'm waiting for something to convince me that one 21264 is a better deal than two 21164s (apart from the limited space available in my home office). ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-20 5:00 ` H.W. Stockman @ 1998-11-21 5:00 ` Greg Lindahl 1998-11-24 5:00 ` IX Corp. 1 sibling, 0 replies; 22+ messages in thread From: Greg Lindahl @ 1998-11-21 5:00 UTC (permalink / raw) "H.W. Stockman" <hwstock@wizard.com> writes: > Anyone care to guess when 21264 boxes will become commodity > items? I'm in the market as of Jan 99, and I'm waiting for > something to convince me that one 21264 is a better deal than > two 21164s (apart from the limited space available in my home > office). The supposed dates were Jan99 for the dual boxes and Mar99 for the single cpu boxes. However, the duals are delayed a bit, and the singles aren't going to be that cheap, initially. In short: don't hold your breath. June, maybe. -- g ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 1 sibling, 1 reply; 22+ messages in thread From: IX Corp. @ 1998-11-24 5:00 UTC (permalink / raw) In article <3656259B.1517@wizard.com>, H.W. Stockman <hwstock@wizard.com> wrote: >Greg Lindahl wrote: >[...] >> Myth. How much does a 4-processor PII@450 box cost? That's similar to >> the 264DP. You haven't seen real pricing for single-cpu 21264 systems >> yet. > >Anyone care to guess when 21264 boxes will become commodity >items? I'm in the market as of Jan 99, and I'm waiting for >something to convince me that one 21264 is a better deal than >two 21164s (apart from the limited space available in my home >office). I've been bothering the aftermarket vendors about this. It looks like they will sell in the 5k$ range and will be available around February/99. This is a guess based on what is known now. DEC has a deal where they will sell you a 21164 machine now, and replace all the guts with 264 parts, sans drives for a $7k downpayment. http://www.workstation.digital.com/announce/upgrade_an.html I'm personally waiting for the single CPU '264, as it looks rather faster than the 164, SMP don't stably work yet on anything as far as I know, my code is granular, and I won't really need the heavy metal until then anyway. -Lupo "The state is the coldest of all cold monsters. Coldly it lies also; and this lie creeps from its mouth: 'I, the state, am the people.'" -Nietzsche <ix@dillenger.io.com> ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-24 5:00 ` IX Corp. @ 1998-11-24 5:00 ` Murx 1998-11-24 5:00 ` Adam C. Powell, IV 0 siblings, 1 reply; 22+ messages in thread From: Murx @ 1998-11-24 5:00 UTC (permalink / raw) IX Corp. wrote: > II'm personally waiting for the single CPU '264, as it looks rather faster > than the 164, SMP don't stably work yet on anything as far as I know, my > code is granular, and I won't really need the heavy metal until then > anyway. I'm a bit sceptical about the 21264 and linux: It's theoretical peak is (at least for now) the same as for the 21164 (2 FPU's, 5xx Mhz). E.g: Goto's gemm wouldn't run any faster. Yet, since the 21264 is a brainiac (instruction reordering etc.) FP performance is supposed to double (about, also due to improved bandwidth to memory) There is, however, lots of brainy activity already in the DEC compiler and especially in the scheduler. EGCS isn't as brainy. Does this now mean, no matter what compiler i have, this beast will run close to it's peak ? Or does this imply that the less sophisticated scheduling (especially with regard to access to main memory) of EGCS will cripple this brainiac? In short, that the gap between the DEC compiler and EGCS will be widening ? Christian ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-24 5:00 ` Murx @ 1998-11-24 5:00 ` Adam C. Powell, IV 1998-11-24 5:00 ` Peter Mardahl 0 siblings, 1 reply; 22+ messages in thread From: Adam C. Powell, IV @ 1998-11-24 5:00 UTC (permalink / raw) Murx wrote: > IX Corp. wrote: > > > II'm personally waiting for the single CPU '264, as it looks rather faster > > than the 164, SMP don't stably work yet on anything as far as I know, my > > code is granular, and I won't really need the heavy metal until then > > anyway. > > I'm a bit sceptical about the 21264 and linux: > It's theoretical peak is (at least for now) the same > as for the 21164 (2 FPU's, 5xx Mhz). > E.g: Goto's gemm wouldn't run any faster. You're absolutely right! For tuned codes like this, the 21164 has almost the same performance/MHz (except memory bandwidth), and obviously vastly better price/performance, vs. 21264. I hope they keep improving 21164, e.g. .25/.18 um, and selling it cheap. Then again, 9 million transisters isn't that much cheaper than 15, so when the investment is paid for (like, in two years maybe), 21264 should cost just under twice as much, and there won't be much justification for 21164 outside of matrix multiply. :-) > Yet, since the 21264 is a brainiac (instruction > reordering etc.) FP performance is supposed to > double (about, also due to improved bandwidth to memory) > There is, however, lots of brainy activity > already in the DEC compiler and especially in the scheduler. > EGCS isn't as brainy. Does this now mean, > no matter what compiler i have, this beast will run > close to it's peak ? Or does this imply that the less > sophisticated scheduling (especially with regard > to access to main memory) of EGCS will cripple > this brainiac? In short, that the gap between the DEC > compiler and EGCS will be widening ? I got an interesting email from Jon "maddog" Hall, a DEC/Compaq employee who is also (I think) chairman of Linux International. He said that DEC engineers have looked over the back-end optimizations in egcs, and determined that it's pretty close to optimal here, not much more can be done. The g77 compiler is merely a fortran front end on what is basically a C compiler, and therefore back end optimizations must be able to deal with C code and its very loose rules. DEC's fortran compiler, on the other hand, takes advantage of FORTRAN's much stricter rules to vectorize loops more efficiently than can be done in C. This means, among other things, that an enormous compiler architecture change is necessary for egcs fortran to compete with DEC fortran. But once code has been compiled into assembler, since each instruction executes on 21264 as soon as its arguments are ready, this should substantially _narrow_ the gap between fortran and C, and between DEC's compilers and egcs. For details on the C-fortran rules differences, click on the link in the http://www.alphalinux.org high-performance page. Zeen, -Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____ USDoC, National Institute of Standards & Technology (NIST) |\ ||< | Center for Theoretical and Computational Materials Science | \||_> | ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 0 siblings, 2 replies; 22+ messages in thread From: Peter Mardahl @ 1998-11-24 5:00 UTC (permalink / raw) In article <365AEF49.EDBAFB13@nist.gov>, Adam C. Powell, IV <adam.powell@nist.gov> wrote: >Murx wrote: >I got an interesting email from Jon "maddog" Hall, a DEC/Compaq employee who is >also (I think) chairman of Linux International. He said that DEC engineers >have looked over the back-end optimizations in egcs, and determined that it's >pretty close to optimal here, not much more can be done. The g77 compiler is >merely a fortran front end on what is basically a C compiler, and therefore >back end optimizations must be able to deal with C code and its very loose >rules. You only mention Fortran. I've found that DEC CXX produces binaries anywhere from 30% to 50% faster than egcs, and I've heard that DEC CC is similarly better. I think it's true that the backend is pretty optimal with egcs's design, but DEC has optimized on both ends, I've heard, and in any case, their results are impressive. I use DEC CXX and DEC CC over egcs whenever possible. PeterM ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-24 5:00 ` Peter Mardahl @ 1998-11-24 5:00 ` Robert Harley 1998-11-26 5:00 ` Murx 1 sibling, 0 replies; 22+ messages in thread From: Robert Harley @ 1998-11-24 5:00 UTC (permalink / raw) Adam C. Powell, IV <adam.powell@nist.gov> wrote: >He said that DEC engineers >have looked over the back-end optimizations in egcs, and determined that it's >pretty close to optimal here, not much more can be done. Well that's obviously bull. Just look over the ASM produced sometime and it is quite obviously not scheduled optimally except sometimes by luck, whereas the output of DEC's tools is always at least "locally" optimal. Try some experiments and you'll typically find that GCC on Digital Unix with 'as' reordering the ASM is about half way between GCC with 'gas' and DEC C (I'm generalising to make a point, there's plenty of variation). peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes: > You only mention Fortran. I've found that DEC CXX produces binaries > anywhere from 30% to 50% faster than egcs, and I've heard that DEC CC > is similarly better. >[...] > I use DEC CXX and DEC CC over egcs whenever possible. Well for speed-critical stuff I usually compile with everything I can get my hands on and take a look at the ASM. Here's are some example measurements of iterations per second of some stuff: * 178 K (egcs 1.1, Haifa, -O2) * 190 K (egcs 1.0.3, Haifa, -O2) * 207 K (gcc 2.7.2.1, -O4) * 211 K (gcc 2.8.1, -O2) * 217 K (gcc 2.8.1, -O2 -freg-struct-return) * 218 K (cc V5.6-071, -O5). * 226 K (cc.alt V5.7-566, -O5). * 227 K (cc.alt2 T5.8-005, -O5). Here's some more with a different program: ------------------------------------------------------------------------------ Iterations per second with version 1.02 on 500 MHz Personal Workstations. Compiled On Ran on DU4 Ran on Linux ================================================ cc DU4 344 K 344 K cc.alt DU4 366 K 365 K cc.alt2 DU4 375 K 377 K gcc DU4 385 K 370 K gcc Linux N/A 388 K ------------------------------------------------------------------------------ These were on some record-breaking humongous calculations and I optimised the bejeezus out of the code. It pays to try a bunch of compilers and flags and pick the best. My impression is that code written for other chips and "ported" to the Alpha with no rewriting fairs well under DEC cc and badly under gcc. However code written with RISC-isms and Alpha-isms in mind shows little difference apart from the scheduling mentioned above. Rob. ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 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 1 sibling, 1 reply; 22+ messages in thread From: Murx @ 1998-11-26 5:00 UTC (permalink / raw) Peter Mardahl wrote: > You only mention Fortran. I've found that DEC CXX produces binaries > anywhere from 30% to 50% faster than egcs, and I've heard that DEC CC > is similarly better. cc is a real good compiler, no doubt. f90 compiler sometimes seems to be in a class of it's own though. > it's true that the backend is pretty optimal with egcs's > design, but DEC has optimized on both ends, I've heard, and in any case, > their results are impressive. Speaking of both ends. How does KAP/EGCS perform ? Any experience on that ? If not: i happen to have access to the KAP preprocessor. I'll start a bit of experimenting i think. Christian ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` Murx @ 1998-11-26 5:00 ` Peter Mardahl 1998-11-26 5:00 ` Murx 0 siblings, 1 reply; 22+ messages in thread From: Peter Mardahl @ 1998-11-26 5:00 UTC (permalink / raw) In article <365D50F1.BD9685DF@theo1.physik.uni-stuttgart.de>, Murx <chrisi@theo1.physik.uni-stuttgart.de> wrote: >Peter Mardahl wrote: > >> You only mention Fortran. I've found that DEC CXX produces binaries >> anywhere from 30% to 50% faster than egcs, and I've heard that DEC CC >> is similarly better. > >cc is a real good compiler, no doubt. f90 compiler >sometimes seems to be in a class of it's own though. > >> it's true that the backend is pretty optimal with egcs's >> design, but DEC has optimized on both ends, I've heard, and in any case, >> their results are impressive. > >Speaking of both ends. >How does KAP/EGCS perform ? I have no idea, nor have I heard of anyone doing that. >If not: i happen to have access to the KAP >preprocessor. I'll start a bit of experimenting i think. We're all holding our breath. PeterM ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` Peter Mardahl @ 1998-11-26 5:00 ` Murx 1998-11-26 5:00 ` Peter Mardahl 0 siblings, 1 reply; 22+ messages in thread From: Murx @ 1998-11-26 5:00 UTC (permalink / raw) Peter Mardahl wrote: > > >Speaking of both ends. > >How does KAP/EGCS perform ? > > I have no idea, nor have I heard of anyone doing that. Well it's not *that* silly ;-) Kap is available on quite a few platforms, and it does source->source optimization. (my kap runs on a RS 6000) > >If not: i happen to have access to the KAP > >preprocessor. I'll start a bit of experimenting i think. > > We're all holding our breath. Now, aren't you a cynic. On a matrix multiplication i get a 45% speed increase. Not too bad for a first test. Murx ^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: Compaq is sitting on a goldmine now that Linux is taking of 1998-11-26 5:00 ` Murx @ 1998-11-26 5:00 ` Peter Mardahl 0 siblings, 0 replies; 22+ messages in thread From: Peter Mardahl @ 1998-11-26 5:00 UTC (permalink / raw) In article <365D8DF9.E5376C14@theo1.physik.uni-stuttgart.de>, Murx <chrisi@theo1.physik.uni-stuttgart.de> wrote: >Peter Mardahl wrote: > >> >> >Speaking of both ends. >> >How does KAP/EGCS perform ? >> >> I have no idea, nor have I heard of anyone doing that. > >Well it's not *that* silly ;-) >Kap is available on quite a few platforms, >and it does source->source optimization. >(my kap runs on a RS 6000) Ack, I didn't mean it sarcastically. I really haven't heard of anyone doing that. >> >If not: i happen to have access to the KAP >> >preprocessor. I'll start a bit of experimenting i think. >> >> We're all holding our breath. > >Now, aren't you a cynic. Heh, no, I really want to know what he gets. If I can use KAP and EGCS, and get decent perf, it saves me $$$. We're all speed freaks here, it seems conceivable to me that we'd all hold our breath to see how KAP works. I mean, we've held our breath for 21264 for so long... >On a matrix multiplication i get a 45% speed increase. >Not too bad for a first test. Tell us more. How well was the matrix multiplication routine coded? PeterM ^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~1998-11-27 5:00 UTC | newest] Thread overview: 22+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox