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: boo Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/08 Message-ID: <343C483F.A77FA29C@tonys.ecology.umn.edu>#1/1 X-Deja-AN: 278878404 References: <61gr1g$kv@news-rocq.inria.fr> <343C0387.41C6@lanl.gov> <343C0C92.B6C7A244@tonys.ecology.umn.edu> <343C3344.7F57@world.std.com> Organization: boo Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec David Chase wrote: > boo wrote: > > > About 5 years ago, I wrote a large simulation in CM Fortran for > > the CM5 (and you had one of those at lanl, so I think you follow > > what I am saying...), and was quite impressed with the performance. > > I then wrote the crucial routines in C with CDPEAC (macros > > which expand to vector unit assembly codes), and produced something > > that thrashed the THEORETICAL PEAK EFFICIENCY POSSIBLE of CM Fortran at > > that time, according to their manuals. > > CDPEAC is defined in what section of the C standard? It isn't... but the code I wrote still looked like C, with a huge macro library that I mastered quickly enough. The CDPEAC macro package expanded into SPARC asm blocks with specific memory accesses that controlled the four VUs. Yes, I know this is all dead now, but so what... It really is not a big deal to learn a new architecture and new optimization techniques, and to adapt all the time. It used to be that Fortran was the only way to achieve performance on the high end vector and MPP supercomputers, but thankfully that is not the case anymore. I felt I had more flexibility with C than the Fortran, and I know that is my personal choice. I still believe that (with the help of expert C programmers like Robert Harley, whose routines are being used in the fastest lattice QCD code running on the T3E) I can beat Fortran every time. Fortran-like code is usually mandatory on seriously custom MPP harware, unfortunately. > You > do know that they're not making those vector units anymore, > don't you, and that they're one of the reasons (but not the > only reason) why TMC is no longer in the hardware business? > Custom hardware sucks. > [more CM5 stuff deleted] Yes, I know all about that, and agree with you. However, it is not a big deal for me to redo the crucial parts for whatever architecture I am working on, in fact I enjoy it. I do appreciate that many people have better things to do with their time. It doesn't take long for me to read several manuals, and attack the problem using the optimal method. As I said before, I occasionally chose Fortran in the past.... back to the example of the extinct CM5, I learnt C* and CMF, and mastered both. C* (which is a parallel version of C, quite beautiful in fact) produced terribly inefficient binaries compared with the CMF compiler. Thank you, Sweet Jesus, for the fact that it is possible to NOT use Fortran these days! If a situation should arise in which Fortran really is the better choice, I would hesitate and then go for it. I don't think it is going to happen, though. > (otherwise, you were not using the machine efficiently, I > don't want to think about what weird accounting, padding, > and coding tricks this may have induced over time.) I did things that were simply illegal in CDPEAC, but they worked, they screamed, and they produced identical results to my CMFortran equivalent. Except faster, of course, and that is the bottom line for me. If someone else was going to pick up the code, I would say I failed dismally!