* Alphas are better than SGI boxes
@ 1998-06-04 21:25 Gary A. Allen
1998-06-05 8:02 ` james
0 siblings, 1 reply; 6+ messages in thread
From: Gary A. Allen @ 1998-06-04 21:25 UTC (permalink / raw)
To: axp-list
Shane Steven Sturrock sent the following:
>We are working on some 64 bit code which isn't being optimised very well with
>gcc/egcs and as a result our 533Mhz alpha was being trounced by the MIPS
>R10000s in our SGI Challenge which only run at 200Mhz. Said trouncing was of
>the order of 15% poorer performance for the alpha. Grim situation for us, big
>laughs from the SGI boys.
>
>Needless to say the problem is with the compilers. The one on the SGI is
>smart enough to know how to get the best out of the chip, gcc/egcs is not.
>Of course there is the option of DU C which is supposed to give about
>30% better results than gcc. I can now believe this having improved the
>performance of our code by a similar amount by a few simple changes to the
>assembler output of egcs.
I've been doing similar benchmarks at NASA Ames with a computational
fluid dynamics (CFD) code along with a trajectory code that I wrote. The
CFD code is a commercial FORTRAN/C hybrid code. My code is written purely in
C. Initially I could only benchmark "toy problems" for the CFD code using an
Egcs compiled executable because the code would crash if I ran a real
test case. However the latest version of Egcs will run real test cases but
I haven't benchmarked it. I did benchmark the Egcs compiled toy CFD problems
and found that the SGI/R10000 was significantly faster than my 533 Mhz Alpha.
However I found for my pure C language trajectory code the Alpha was faster.
Keep in mind that this is an apples-to-oranges comparison because the
trajectory code was scalar while the CFD code was vector intensive. Also the
Gcc compiler is a much more mature compiler than then the G77 compiler. I
then compiled the CFD code as a staticly linked executable using DEC Unix
Fortran and C compilers. The DEC compiled code ran without mishap for a
full blown test case (3D simulation of the Venture Star RLV) under Linux and
was about 15% ***faster*** than our fastest SGI/R10000. My Alpha with 6
Gbytes of hard disk space, 1/4 Gbyte of RAM and a 20" moniter costs about
$6,500 all up. My Alpha ran faster for our toughest CFD problem against an
SGI box that cost $250,000. In terms of CPU cycles/dollar the Linux/Alpha
combination "blows the doors off" of all competitors. It is without
question the cheapest way to do scientific compuations.
Gary
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Alphas are better than SGI boxes
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
0 siblings, 2 replies; 6+ messages in thread
From: james @ 1998-06-05 8:02 UTC (permalink / raw)
To: axp-list
>then compiled the CFD code as a staticly linked executable using DEC Unix
>Fortran and C compilers. The DEC compiled code ran without mishap for a
>full blown test case (3D simulation of the Venture Star RLV) under Linux and
>was about 15% ***faster*** than our fastest SGI/R10000.
Ive seen a couple of people mention using dec fortran under linux.
Would someone like to give me a few pointers on how one would go about
this?
--
http://www.maths.ex.ac.uk/~james/tekno
Watch out for "Medium Length Hair" EP on Science City(Sci 12)
Most Intelligent Customers Realize Our Software is Only for Fools and Teenagers
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Alphas are better than SGI boxes
1998-06-05 8:02 ` james
@ 1998-06-05 13:44 ` Ian Grant
1998-06-05 15:18 ` Maurice Hilarius
1 sibling, 0 replies; 6+ messages in thread
From: Ian Grant @ 1998-06-05 13:44 UTC (permalink / raw)
To: james; +Cc: axp-list
On Fri, 5 Jun 1998 james@maths.ex.ac.uk wrote:
> Ive seen a couple of people mention using dec fortran under linux.
> Would someone like to give me a few pointers on how one would go about
> this?
There's not a lot to it. Log into a DU box. Compile your code as you would
would normally but add the switch -non_shared, then run the binary on your
Linux box. Run-time fortran90 errors can be a problem because the compiled
code assumes there's an error message file on the system. I'm not sure
it's legal to take a copy of that, but it /might/ just work, who knows?
Ian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Alphas are better than SGI boxes
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 ` More assembler stuff Shane Steven Sturrock
1 sibling, 2 replies; 6+ messages in thread
From: Maurice Hilarius @ 1998-06-05 15:18 UTC (permalink / raw)
To: axp-list
With regards to your message at 09:02 AM 06-05-98 +0100,
james@noether.ex.ac.uk. Where you stated:
>>then compiled the CFD code as a staticly linked executable using DEC Unix
>>Fortran and C compilers. The DEC compiled code ran without mishap for a
>>full blown test case (3D simulation of the Venture Star RLV) under Linux and
>>was about 15% ***faster*** than our fastest SGI/R10000.
>
>Ive seen a couple of people mention using dec fortran under linux.
>Would someone like to give me a few pointers on how one would go about
>this?
Certainly, However, it is not difficult, except in the case of legalities.
One must own a copy of Digital UNIX for the machine, as you will have to
use some of the libraries. Of course you must also own a copy of Digital
Fortran too..
As these are quite costly, this is often an impediment to many.
You can compile the code on Fortran on another box running UNIX and
Fortran, but the first limitation applies. From what has been posted
earlier by some representatives from Digital, even running statically
linked UNIX applications on Linux may still constitute a copyright violation.
+--------------------------------------------------------+
| Maurice Hilarius | The Past is History |
| | The Future is Mystery |
| | Today is a Gift |
| Phone (403) 456-1510 | That is why they call it |
| email:maurice@harddata.com | The Present |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Alphas are better than SGI boxes
1998-06-05 15:18 ` Maurice Hilarius
@ 1998-06-05 17:09 ` Wes Bauske
1998-06-11 10:28 ` More assembler stuff Shane Steven Sturrock
1 sibling, 0 replies; 6+ messages in thread
From: Wes Bauske @ 1998-06-05 17:09 UTC (permalink / raw)
To: axp-list
Maurice Hilarius wrote:
> With regards to your message at 09:02 AM 06-05-98 +0100,
> james@noether.ex.ac.uk. Where you stated:
> >>then compiled the CFD code as a staticly linked executable using DEC Unix
> >>Fortran and C compilers. The DEC compiled code ran without mishap for a
> >>full blown test case (3D simulation of the Venture Star RLV) under Linux and
> >>was about 15% ***faster*** than our fastest SGI/R10000.
> >
> >Ive seen a couple of people mention using dec fortran under linux.
> >Would someone like to give me a few pointers on how one would go about
> >this?
> Certainly, However, it is not difficult, except in the case of legalities.
> One must own a copy of Digital UNIX for the machine, as you will have to
> use some of the libraries. Of course you must also own a copy of Digital
> Fortran too..
> As these are quite costly, this is often an impediment to many.
>
> You can compile the code on Fortran on another box running UNIX and
> Fortran, but the first limitation applies. From what has been posted
> earlier by some representatives from Digital, even running statically
> linked UNIX applications on Linux may still constitute a copyright violation.
>
Yeah. I kind of thought you should really pay for their expertise too.
Minimum to me would be a copy of DEC UNIX and runtime licenses
for their compilers. Any idea what that is? Think you posted a while
back SRM kits were about $95??
Wes
^ permalink raw reply [flat|nested] 6+ messages in thread
* More assembler stuff
1998-06-05 15:18 ` Maurice Hilarius
1998-06-05 17:09 ` Wes Bauske
@ 1998-06-11 10:28 ` Shane Steven Sturrock
1 sibling, 0 replies; 6+ messages in thread
From: Shane Steven Sturrock @ 1998-06-11 10:28 UTC (permalink / raw)
To: axp-list
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 :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-06-11 10:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` More assembler stuff Shane Steven Sturrock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox