From: Shane Steven Sturrock <sss@hayes.bru.ed.ac.uk>
To: axp-list@redhat.com
Subject: More assembler stuff
Date: Thu, 11 Jun 1998 10:28:34 GMT [thread overview]
Message-ID: <199806111028.KAA05292@hayes.bru.ed.ac.uk> (raw)
In-Reply-To: <3.0.5.32.19980605091857.0083a480@ellpspace.math.ualberta.ca>
To answer the few questions I had regarding compiler, I had tested the code
with gcc and egcs 1.02 and the results were that a little fiddling with the
assembler code gave a big improvement in performance. I was advised by Steven
Tweedie (who happens to be based here in Edinburgh and was at our local Linux
group meeting last week) to try 1.03a with haifa enabled. This I did and the
result was the code ran at the same speed as before, in fact I could not see
any difference in the output from 1.02 and 1.03a. Most scary though,
optimisations higher than -O resulted in the code being slower as with 1.02.
I think we will continue hand optimising for the moment. We can't release the
source code because it is a commercial product but I can say that one of the
tricks we used on the SGI to get better performance was to duplicate all
variables in our inner loop and double the amount of work which gave the SGI
compiler the clue to re-order instructions etc and gave it a better chance of
using both pipelines. This resulted in the SGI code running about 40% quicker
than it had previously. This same code on the alpha obviously produces code
which doesn't fill both pipelines because the compiler doesn't take the hint so
we hand tweak the code and get the same result as with the SGI, about 30-40%
speedup.
Of course, we are still only about 20% faster than the SGI while running a
clock which is nearly triple the speed of our R10000s. No doubt we will do
better when our LX motherboard arrives to replace the SX we didn't order but
even so......
Steven assures me that the 21264 will solve all our problems and is
blisteringly fast, since we're hoping to sell a software solution based on a
commercially available budget box (and the alpha/linux combination is the prime
candidate) this may well be what we need but we would still like to get the
best out of the 21164, at least we're getting somewhere with this. Our problem
uses virtually no floating point, the code runs in around 1MB of RAM too and we
are not running out of registers either.
I agree though, alphas are better than SGIs :-D
Dr. Shane Sturrock - sss@holyrood.ed.ac.uk
kernel: Calibrating delay loop.. ok - 529.53 BogoMIPS
Mmmmmmmmmmm :-)
next prev parent reply other threads:[~1998-06-11 10:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-04 21:25 Alphas are better than SGI boxes Gary A. Allen
1998-06-05 8:02 ` james
1998-06-05 13:44 ` Ian Grant
1998-06-05 15:18 ` Maurice Hilarius
1998-06-05 17:09 ` Wes Bauske
1998-06-11 10:28 ` Shane Steven Sturrock [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-06-11 13:54 More assembler stuff Greg Lindahl
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox