From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: Toon Moene Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/16 Message-ID: <625na9$35f$1@news.utrecht.NL.net>#1/1 X-Deja-AN: 281521616 References: <61g30t$o2n@news-rocq.inria.fr> <343CE2F4.362D80F0@tonys.ecology.umn.edu> <343EF1C9.61670DFC@tonys.ecology.umn.edu> <343FAA72.2ED97125@acm.org> <61tnd5$6m8@usenet.srv.cis.pitt.edu> <61uvsh$br0$1@goanna.cs.rmit.edu.au> <34452746.3F9BC63B@boo.boo> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec boo wrote: > Ok, now let me discuss where MY use of the word "dimensional". Say > for example, you are working with a 3D or 4D "array", representing > space or space-time. The actual symmetries of spacetime are > reflected in the fact that you would do best with a memory system > in which access is equally fast no matter which axis you are > doing access along. (If you want specifics, imagine some kind > of a N-dimensional 3rd order derivative operator, requiring > information from neigboring points in the 2N directions). > When I said "memory is not multi-dimensional", I meant "memory > access is not equally fast along all axes of a multi-dimensional > array". Of course it is not!! Some points are in the cache, > some may be stored in registers from some previous calculation, > some are in main memory, some may be on another node in some > MPP supercomputer. I know that high performance fortran actually > usually does an excellent job of optimizing the calculations, > but my personal experience is that I can usually do better > by really thinking hard, and coming up with an algorithm that > realizes that the various ONE-DIMENSIONAL components of the > memory system are utilized in an optimal manner. And as I said > elsewhere, most people don't need to bother wasting their time > on this kind of optimization, but for me, doing so can reduce > a simulation from one month down to one week, on a 300 Gflop > supercomputer that I have very limited resources on. Yep, I start to see better now what you meant (most people would be highly confused by this use of the word dimension, even non-CS types like me). Currently, it often is so that in the distributed memory case, hand optimisation out-performs compiler optimisation (this is not always so; about a year ago I read a white paper on the Digital Equipment Web site about a problem they solved faster with a program generated by their HPF compiler than ordinary Fortran (compiled by the same compiler) + message passing calls, mainly because the compiler happily combined messages that seemed totally unrelated to the human Fortran programmer). The other parts of the memory hierarchy are already dealt with in most high perfomance Fortran compilers (i.e. the ones you get for a few k$ with your high end workstation). Now if we could get the coGNUscenti to work on this for g77, that would be great :-) -- Toon Moene (mailto:toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: mailto:fortran@gnu.ai.mit.edu; NWP: http://www.knmi.nl/hirlam