From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,a47c1cf0283bc33b X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,a47c1cf0283bc33b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-10-05 03:11:46 PST Path: gmdzi!unido!mcsun!uunet!europa.asd.contel.com!darwin.sura.net!haven.umd.edu!boingo.med.jhu.edu!jhunix!ereiamjh From: ereiamjh@jhunix.HCF.JHU.EDU (Tom B. O'Toole) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Vector performance, any data available? Message-ID: <9773@jhunix.HCF.JHU.EDU> Date: 1 Oct 91 16:59:35 GMT References: <1991Sep30.093404.4751@urz.unibas.ch> Followup-To: comp.os.vms Organization: HAC - Johns Hopkins University, Baltimore Xref: gmdzi comp.os.vms:131256 comp.sys.dec:25451 In article <1991Sep30.093404.4751@urz.unibas.ch> doelz@urz.unibas.ch (Reinhard Doelz / URZ Basel) writes: > >We are just in the process of starting a VAX 6510 in our (CI)cluster. The >HPO Fortran compiler is installed, as well as one vector unit. > >QUESTION: Is it desirable to recommend the use of the /verctor option in >fortran programs *as default* ? Simple measurements with trivial programs >indicate a low performance of the vector unit in some cases. NO, don't use the vector option as a default. For one thing, it takes quite a bit longer to compile a program with the /vector qualifier. For another, you will probably find that many programs will in fact do WORSE when compiled vector. The overhead of the vector unit wipes out minimal or nonexistant performance gains, you have to really get the thing out on the highway before it starts to scream. Many times there will be an opportunity for vectorization that will be subverted by the way the code is written. Sometimes it isn't that obvious what's going wrong. When we first got the unit, I looked at a few sample applications in an attempt to get them to use the VP effectively. In some cases it was trivial to get 3-6x improvement in performance. Just recompile with /vector! In more than half, however, there was negligible improvement, or an actual performance degradation. Looking at the listing file with the loop summary we could see large do loops not being vectorized and stupid worthless do loops vectorized. Looking at the code more closely, it was understandable why it wasn't vectorized. I don't know about you, but I have worked with fortran programs written by scientists for a number of years, and some of the stuff you see..., WEW! Part of the problem was all this extraneous crap in the programs and part was just the very serial mindset the programs were coming from. I would spend a couple of hours trying to restructure a loop, and maybe get a 10% gain, or the thing wouldn't vectorize. I didn't have time to fully understand each problem these programs were trying to solve, so I would go back to them and say "Well, you might want to try rewriting it from a different frame of mind...", which of course was met with great enthusiasm.... Eventually we got LSE and PCA on the system, which helped with the 'diagnostic' capability, but not with the basic problem. The end result is that a year later, the vector processor is not used much at all. Getting canned packages like IMSL or MATLAB vectorized from the vendor would help, but I haven't heard about anything in the works (has anybody else??). We have put up DXML (extended math library), but I have yet to get the documentation, so it sits gathering dust and parity errors... I do wish the compiler could do a little better. Users just don't want to put in the time to rewrite, or optimize their code, especially larger code. The compiler should have vectorized some things it didn't, I thought, and it could have provided more clues to help the user. Sometimes when something didn't vectorize, no inhibitor messages would be produced, even in LSE... We are running HPOV1.0a, a new version was supposed to be in the works, but I haven't gotten anything. What version are you running... Oh, another strange observation: on medium to large problems, a pathologically large number of page-faults will occur running /vector. Even if the program should have fit in Wsextent, the process would not grow and would keep paging frantically. I found that by doing a set work/lim=xxx, where xxx was 'large enough', would solve the problem (of course the adjustment would have to be authorized in UAF). I would be prepared to give your users large wsquo so they can use the above command to adjust the memory they get. I guess this is a bug in VMS support of the V.P. and I should probably SPR it... -- Tom O'Toole - ecf_stbo@jhuvms.bitnet - JHUVMS system programmer Homewood Computing Facilities, Johns Hopkins University, Balto. Md. 21218 ease!Trim!eeeaaaassse!trimtrimtrimeeeeeeaaaaassetrimease!trim!ease!trimeaase