From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,478505766f6f7124 X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,478505766f6f7124 X-Google-Attributes: gid10f8a1,public X-Google-Thread: fee84,478505766f6f7124 X-Google-Attributes: gidfee84,public X-Google-Thread: 110292,478505766f6f7124 X-Google-Attributes: gid110292,public X-Google-Thread: f86d6,478505766f6f7124 X-Google-Attributes: gidf86d6,public X-Google-Thread: 102b75,478505766f6f7124 X-Google-Attributes: gid102b75,public X-Google-Thread: f6134,478505766f6f7124 X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,478505766f6f7124 X-Google-Attributes: gid1164f8,public From: John Subject: Re: Another SKC, plus a book review, posted on the Acersoft site Date: 1999/12/31 Message-ID: <386CC5FF.FF77F871@austin.rr.com> X-Deja-AN: 566876639 Content-Transfer-Encoding: 7bit References: <385F9C47.2F33D5B7@austin.ibm.com> <38602BB0.51433E4E@igs.net> <8481ru$dv5$1@server05.icaen.uiowa.edu> <3868325F.289EF10@tsoft-inc.com> <3868D97F.B0F80D63@austin.rr.com> <3868F945.C82FA585@tsoft-inc.com> <386927F0.4FF4BC93@austin.rr.com> <84h7li$epc@spool.cs.wisc.edu> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon1.austin.rr.com 946652590 24.28.94.57 (Fri, 31 Dec 1999 09:03:10 CST) Organization: Road Runner - Texas MIME-Version: 1.0 Reply-To: john@mccalpin.com NNTP-Posting-Date: Fri, 31 Dec 1999 09:03:10 CST Newsgroups: comp.os.vms,comp.sys.dec,vmsnet.alpha,comp.org.decus,comp.arch,comp.sys.intel,comp.unix.osf.osf1,vmsnet.sysmgt Andy Glew wrote: > > I'm sure that I'll be flamed royally for the above. All I am doing is synthesizing > what I have been told by CFD experts. Hmmm.... I don't see any reason to flame you, but I think I will take some time to disagree.... Maybe a lot of time.... <-----Activate Professor Mode-----> > Here is what I have gathered from talking to > Computational Fluid Dynamics people: > > CFD codes are used > a) in ocean models > b) in graphics - movies, etc. > c) in nuclear bomb blast modelling - the "top secret" area > you mention above. (a) Ocean models do not represent a particularly large amount of revenue for vendors of high-performance computers -- much less that the associated field of weather modelling (which is dynamically related, but quite different from the view of performance modelling). Ocean models certainly are CFD codes, but they are woefully behind the times in their formulation and numerical methods. There are two reasons for this: (a.1) The computational task is so immense that it seems silly to add more numerical intensity to the problem. (There is some truth in this, but making the problems harder to solve is still the right answer.) (a.2) Ocean modellers in academia, defense, and government research labs have found themselves unable to give up their dependence on 1960's numerical modelling technology. This is reinforced by a culture that does not allow researchers to ask if results coming out of numerical models are correct and that denies funding to researchers who wish to import significant amounts of modern CFD into their work. (Yes, there is a fair amount of disgust implicit in the previous paragraph, brought on by bitter personal experience. But it did bring me into computer architecture, so it was not an entirely wasted 14 years.) This backwardness in numerical methods is part of why these codes run so well on vector machines. Correspondingly, the changes required to modernize the codes would decrease the suitability for vector machines and increase the suitability for cached machines. (b) I do not believe that CFD codes used in movies or graphics represent a significant amount of revenue, or that they are intrinsically tightly linked with the performance characteristics of the codes that are important (I will get to that eventually). The people that I have talked to in this area have often "fiddled" with the models in order to generate the desired appearance, and this makes comparisons with other sub-fields difficult. (c) CFD codes are certainly used as part of nuclear weapon simulation. (By the way, this was *not* the highly secret area that I was referring to earlier where vector machines still have a large performance advantage.) There are several different aspects of weapon simulation that are important, but it is hard to tell how accurate a picture can be gained from entirely "outside the fence". The most obvious application of CFD is with the high-resolution sPPM code used for hydrodynamics with intense shocks. I do not have any first-hand experience with running this on vector machines, but it certainly runs very well on scalar machines, delivering about 1 TFLOPS sustained performance on both the ASCI "Blue Pacific" machine at Livermore (a group of three very large IBM SP's -- almost 6000 cpus in total), and the ASCI "Blue Mountain" machine at Los Alamos (a cluster of 48 128p SGI Origin2000's). Newer versions of the sPPM code have been developed to run on generic clusters of SMPs with excellent scaling and performance. Other applications of CFD to nuclear weapons design are less closely associated with the economically important applications of CFD, which I will actually get to next. (d) Andy's survey missed most of the areas of CFD that are economically important. Several of these are: (d.1) Aerospace engineering -- CFD testing of airplanes, helicopters, missiles, etc. (d.2) Automotive engineering -- drag coefficient modelling, under-hood heat transport, and noise modelling. (d.3) Petroleum Reservoir modelling (d.4) "generic" CAE -- low-speed airflow and heat transport for virtually every device that needs cooling, especially including computers and HVAC ("Heating, Ventilation, and Air Conditioning"). (d.4) Weather Modelling -- both local-area and global. The economically important applications are in short-term forecasting, while long- term simulations are important in the smaller research area. (e) Andy's survey also missed a couple of areas that, while not of economic importance comparable to the items in (d), are comparable to the areas he listed: (e.1) Groundwater modelling -- similar to Petroleum Reservoir modelling in a number of ways. (e.2) Air pollution modelling -- not really the same as weather modelling because of the specialized interests. (e.3) Biomedical CFD -- a really tough area of increasing interest (but not yet associated with a lot of $$$). (e.4) Combustion modelling -- another really tough area of increasing interest. Important applications are in internal combustion engines, fluidized bed reactors (go look it up), and other chemical reactors. (e.5) Pipe transport -- simulation of drag and flow characteristics for fluid flow in pipes. I am not sure how much of this is done by simulation and how much is done by looking up the answers in books. (After all, people have been pushing fluids through pipes for a long time, so most of the parameter space has been pretty thoroughly charted.) I probably missed someone's favorite application area, and I apologize in advance. Blame it on the nasty flu bug that decided to ruin my Christmas vacation.... > > CFD codes still run best on vector machines. Some of them run very well on vector machines, especially [a,d2,d4], but most of the economically important applications run quite well on workstations. Interestingly, the "up-n-coming" areas (involving shock capturing, adaptive meshes, non-Newtonian/anisotropic fluids, and other fun things) generally run really *badly* on vector machines, and relatively well on scalar machines. I say "relatively well" because although there is so much work to do per element that cache reuse is very good, there are significant problems with data-dependent control flow exposing functional unit latencies and branch mispredict penalties, so the IPC is not as high as one might get from a more vector-like code. The most popular (in the U.S.) Petroleum Reservoir models (d3) are run exclusively on scalar systems. > There was a research funding trend, from circa > 1985 to present, where the US gov't strongly encouraged running such > scientific codes on MPP (massively parallel systems), basically discouraging > use of vector machines. Whose fault was that anyway? I am really curious, because I was just a peon in 1985, and wonder who it was on the advisory panels of the NSF and DARPA who pushed so hard to fund MPP machines of various sorts. It certainly wasted an incredible amount of many people's time -- porting applications to one incompatible system after another as the vendors "bit the dust". > My CFD contacts know of no world-class CFD code that was > voluntarily ported to an MPP, or microprocessor machine. I.e. given their > druthers, CFD codes would all continue to be written > on vector machines. The only reasons CFD codes have been ported > to non-vector machines has been > (a) because of research grants to do just that - grants not > to improve CFD, but just to do the port > (b) because no other machines were available. Lots of CFD codes have been ported to microprocessor-based systems, both uniprocessor and multiprocessor. Much of the economically important application of CFD (especially d4) is done almost exclusively on workstations. There are a couple of vendors who refuse to change their solvers, so their codes still run much better on vector machines, but even then, they are not cost-effective there. Concerning "because no other machines were available", there is a simple reason -- the vector machines have been too expensive, and have been losing their absolute performance edge year after year. In the early 1990's a colleague of mine got about $300k to purchase computational resources for ocean modelling. There was absolutely no doubt that the best way to spend that money was to purchase 5-6 well-equipped IBM RS/6000's with adequate memory and lots of disk. Using the money to purchase Cray time or a "mini-supercomputer" would have been silly even then, and the microprocessor-based systems have closed the gap quite a bit in the intervening 7-8 years. (Interestingly, my colleague was forced to purchase a very small CM-200 with his money (don't you love academic politics), and it basically sat idle for its entire life. Some people with extra time on their hands finally got one simple code running at the speed of a single IBM work- station. None of the big codes were ever ported, as far as I know.) Right now, major CFD codes are available for scalar systems in both SMP and MPI versions, mostly with excellent scalability, and with price/performance that is certainly comparable to that of vector machines (depending on how you treat some of NEC's pricing). The scalar machines have the advantage of significantly better performance than the vector machines for more complicated kernels, such as those used in combustion simulation for internal combustion engines. Sure, I would rather have the 600 MFLOPS sustained performance of a Cray T90 for my ocean models, but that system costs over $1 million per processor, and it is only about 5x the speed of my IBM RS/6000-397 workstation (about $20k?). Five times the performance for fifty times the price is not very appealing, unless you are rich enough that $1 million is in the realm of "discretionary funds". > Because of the US emphasis on non-vector machines, US researchers > are basically incapable of running detailed world weather and climate > models. The really coarse stuff, maybe; accurate stuff, no. I think that this is a completely bogus statement. Weather codes can be made to run very effectively on many classes of systems (although message-passing ports are relatively expensive in people-effort). Although I have only been peripherally involved with this, I would claim that the U.S. weather modelling community had access to world- class computational resources with available non-vector machines, but their vector bias led them to discount that option as viable. For example, Wesley Jones had MM5 running at better than 10 GFLOPS three years ago on a 128-cpu SGI Origin2000 -- I do not beleive that any vector machines of the era offered significantly better performance at any price. The global codes scale less well, but still provide reasonable performance for an environment with some degree of task parallelism (i.e. all shared resource centers). Even the small T42 models delivered 2 GFLOPS on a 32-cpu Origin2000, and I expect that the larger cases scale much better -- though I have been unable to come up with any quantitative data on those high- resolution cases. The U.S. weather community could also have succeeded if they had been able to buy Japanese vector machines. I do not believe that NCAR really needed vector machines to get their work done, but there is no doubt that the SX-4's that they wanted could have worked very well. What they got instead of the 4 32p SX-4's over a 5 year period was a far less useful collection of machines of uneven quality and imperfect compatibility. So it was a combination of *pro-vector* bias and political protectionism that prevented NCAR from achieving success in the manner that they desired.