* Vector performance, any data available?
@ 1991-09-30 8:34 Reinhard Doelz / URZ Basel
1991-10-01 16:59 ` Tom B. O'Toole
0 siblings, 1 reply; 2+ messages in thread
From: Reinhard Doelz / URZ Basel @ 1991-09-30 8:34 UTC (permalink / raw)
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.
WANTED: experiences on performance gains in using HPO w/o /vector option.
I'll summarize on the net if there is enough feedback.
Regards
Reinhard
+-----------------------------------------------------------------------------+
|Dr. Reinhard Doelz | X.400: S=doelz,OU=urz,O=unibas,P=switch,A=arcom,C=ch |
| Universitaets- | RFC : doelz@urz.unibas.ch |
| rechenzentrum | X.25 : psi%022846211142::embnet |
| Klingelbergstr.70 | Tel. : +41 61 267-2076 or 2247 +-----------------------+
| CH 4056 Basel | Fax. : +41 61 261-6760 | S W I T Z E R L A N D
+-----------------------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Vector performance, any data available?
1991-09-30 8:34 Vector performance, any data available? Reinhard Doelz / URZ Basel
@ 1991-10-01 16:59 ` Tom B. O'Toole
0 siblings, 0 replies; 2+ messages in thread
From: Tom B. O'Toole @ 1991-10-01 16:59 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1991-10-01 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-09-30 8:34 Vector performance, any data available? Reinhard Doelz / URZ Basel
1991-10-01 16:59 ` Tom B. O'Toole
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox