From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: boo Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/15 Message-ID: <344520AE.7657EA26@boo.boo>#1/1 X-Deja-AN: 280788445 References: <61g30t$o2n@news-rocq.inria.fr> <61ho3v$3m0$1@goanna.cs.rmit.edu.au> <343CE2F4.362D80F0@tonys.ecology.umn.edu> <61k9g2$2fa@mulga.cs.mu.OZ.AU> <34406444.A9D6EF97@tonys.ecology.umn.edu> <61tq8p$t61@hermes.acs.unt.edu> <34427D66.F3558989@tonys.ecology.umn.edu> <61v23j$5f5$1@clarion.carno.net.au> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Jason.Ozolins@anu.edu.au babbled: > > In <34427D66.F3558989@tonys.ecology.umn.edu> boo writes: > > >Steve Tate babbled: > >> Your original comment was that "as far as I understood, computer > >> memory is not two dimensional", and then you go off on this latest > >> posting and talk about how you're interested in computers that are > >> used by many people. Well the computers that are used by millions of > >> people DO have two dimensional memory, which you seem unaware of. > >> DRAM (of any kind) is two dimensional: locations have a row address > >> and a column address. This is hidden, for the most part, by other > >> hardware, but it really is there and it really can make a performance > >> difference. > > > >One other thing.... the important thing really is cache memory, > >not DRAM. Even if you have several cache lines, they still > >are cache LINES. Do you see what I am saying? If you can show > >me some dimensionality of the cache (or other) memory that > >I can actually take advantage of at the assembly level, then > >I would love to hear about it. Seriously, I would, because I > >would use it, so please enlighten me. Some of the arrays I have > >played with in F90 have been 6 or 7 dimensional, so this is > >quite important. > > Oh, come on - what would REAL dimensionality look like to you? > Cache, virtual memory, main memory, and disk all happen to be > linearly addressable, but that linear addressability is an > *abstraction* imposed upon implementations which show their > multi-dimensionality in the way that some patterns of access are > much more efficient than others, and I expect that you or anyone > else with half a clue would take this into account when writing > speed-critical code. That kind of locality behaviour sure *sounds* > like there is a preferred *dimension* to access along... who gives > a gnat fart if memory isn't "seven-dimensional" like your arrays? > When you decide to use eight-dimensional arrays do you want memory > to magically be eight-dimensional instead? Oh, come on. You and the other clueless here do not seem to understand what I meant by "multi-dimensional". Only a dimwit would conclude that because you have registers, L1 cache, L2 cache, L3 cache and virtual memory, that you therefore have a 5 dimensional structure! Multi-dimensionality usually requires that there are certain symmetries that apply, no matter which "axis" you are pointing along. I assumed that you were all smart enough to realize that I was talking about SPEED and BANDWIDTH, since I thought were were discussing PERFORMANCE. There is no such symmetry in what you mention, and therefore I conclude that you and the other compubabblers are merely using the word "dimension" without thinking about what it means, in the context that I used it. Note that 1+1 is not always equal to 2. > > >Alas! I fear that this is all a matter of semantics, and > >the usual cyber-babble that computer scientists are prone to > >sprout. > > Worry not! Your fears are unfounded. It is a truly relevant matter > of real-world machine behaviour. > > The bottom line (as I, not being a computer scientist, see it): > The design of the standard C language is less suited to optimization > by compiler for modern mainstream processor architectures than some > other languages. FORTRAN looks to be one of those other languages, > from what most people have pointed out in this thread. > > You may be a mighty software god who can do all that optimization at > the C source level, but I think most people don't want to have to cope > with that kind of lossage. And I suspect you might feel the same way > if you had to enhance or port the resultant code. Did I ever say otherwise? Of course you are right. But for me, writing more efficient code can reduce running time from 4 months to 1 month, even if I am using a 300 Gflop machine.