Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Optimization on ALPHA OSF1 ??
@ 1994-01-24 22:23 Gary Beckmann
  1994-01-27 13:39 ` Burkhard Neidecker-Lutz
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Beckmann @ 1994-01-24 22:23 UTC (permalink / raw)


I've been fooling around with some very simple minded benchmarks for
the people I work for, and I've noticed that compiling the program
with -O  _slows_ down the loops doing floating point operations.  I
get a factor of about 0.7 speedup.  DECstation Ultrix compilers give
me a factor in the range of 2.5 to 4, on an HP I get a speedup of 1.6
to 2.6, all depending on which operations are being measured.  Integer
loops see a speed up of 3 to 4.7 on the alpha (not considering
division for now).   Ultrix sees speedups of 5.5 to 14.7 (wow!) and HP
gets 3.2 to 5.9 speedups.   

Basically, we have a large computation product that runs slower on the
Alpha than on the DECstation 5000/240 and the lower end HPs !!!  Seems
that optimization should run at least the same speed of the
non-optimized code.  Anything magic we need to do?   Don't try to sell
me KAP because DEC is already doing that -- seems like Chrysler
putting a 4 cylinder in a mini-van.  Of course you're going to buy the
6 cylinder! 

Thanks for any tips.
--
--
					Gary Beckmann
					gary@gog.dfci.harvard.edu

50 Binney Street			voice: (617)735-8781
Boston, MA 02115			fax:   (617)735-8772	



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Optimization on ALPHA OSF1 ??
  1994-01-24 22:23 Optimization on ALPHA OSF1 ?? Gary Beckmann
@ 1994-01-27 13:39 ` Burkhard Neidecker-Lutz
  0 siblings, 0 replies; 2+ messages in thread
From: Burkhard Neidecker-Lutz @ 1994-01-27 13:39 UTC (permalink / raw)


In article <GARY.94Jan24172340@gog.dfci.harvard.edu> gary@gog.dfci.harvard.edu (Gary Beckmann) writes:
>I've been fooling around with some very simple minded benchmarks for
>the people I work for, and I've noticed that compiling the program
>with -O  _slows_ down the loops doing floating point operations.  I
>get a factor of about 0.7 speedup

Gary was kind enough to let me have a look at his code and there are
two points to it:

a) The program spends more than half of it's cycles in *integer* division.
   First, this is a library routine on Alpha and a hardware instruction
   on MIPS, hence the difference is understandable. Optimization doesn't
   affect that part, because the libaries are the same regardless what
   flags you use.

b) The program just happens to trash the 8 Kbyte direct mapped I-cache
   with the particular release of compiler and OS (V1.3). With V2.0
   compilers the speedups where as expected (but then , other programs
   may exhibit that behaviour, as with any direct mapped instruction
   cache).

Therefore, the program just happens to be one of the one-in-a-thousand
time I-cache trashers, plus it's not measuring the speed of floating
point.

		Burkhard Neidecker-Lutz

Distributed Multimedia Group, CEC Karlsruhe  
BERKOM II Project
Digital Equipment Corporation
neideck@nestvx.enet.dec.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-01-27 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-24 22:23 Optimization on ALPHA OSF1 ?? Gary Beckmann
1994-01-27 13:39 ` Burkhard Neidecker-Lutz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox