* Compaq C-compiler - what am I doing wrong?
@ 1999-11-04 5:00 Jimmy Eng
1999-11-05 5:00 ` Tony Hammitt
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jimmy Eng @ 1999-11-04 5:00 UTC (permalink / raw)
I'm looking a bit of help here. I have a DS10 that
has Linux 2.2.12 installed on it along with the latest
Compaq C-compiler beta release (ccc-6.2.0-8.alpha.rpm).
I was hoping to see the 466MHz DS10 outperform my the
current 533MHz 164LX Alphas that I currently have in
my cluster. However, performance for my application is
actually slower on the DS10 than on the 164LX's (as well
as a 500MHz 21164A AlphaStation 500). The difference in
performance could be on the order of the difference in
clock speeds but I don't have the numbers in front of
me to verify exactly.
Anyways, it appears that something's not working right
for me obviously since the performance of the DS10 should
be better. I've looped through a portion of my application
that calculates FFTs and timed the ccc (Compaq's C) compiler
(turning on optmizations including -tune host -arch host)
against gcc that came with the OS (RedHat 6.0) and there's
virtually no difference in performance on the DS10!
Any ideas?
- Jimmy
Software Engineer, Department of Molecular Biotechnology
University of Washington
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Compaq C-compiler - what am I doing wrong?
1999-11-04 5:00 Compaq C-compiler - what am I doing wrong? Jimmy Eng
@ 1999-11-05 5:00 ` Tony Hammitt
1999-11-05 5:00 ` Robert Harley
1999-11-05 5:00 ` Reg Clemens
1999-11-09 5:00 ` Wong Yeow Whye
2 siblings, 1 reply; 8+ messages in thread
From: Tony Hammitt @ 1999-11-05 5:00 UTC (permalink / raw)
Jimmy Eng wrote:
>
> I'm looking a bit of help here. I have a DS10 that
> has Linux 2.2.12 installed on it along with the latest
> Compaq C-compiler beta release (ccc-6.2.0-8.alpha.rpm).
>
> I was hoping to see the 466MHz DS10 outperform my the
> current 533MHz 164LX Alphas that I currently have in
> my cluster. However, performance for my application is
> actually slower on the DS10 than on the 164LX's (as well
> as a 500MHz 21164A AlphaStation 500). The difference in
> performance could be on the order of the difference in
> clock speeds but I don't have the numbers in front of
> me to verify exactly.
>
> Anyways, it appears that something's not working right
> for me obviously since the performance of the DS10 should
> be better. I've looped through a portion of my application
> that calculates FFTs and timed the ccc (Compaq's C) compiler
> (turning on optmizations including -tune host -arch host)
> against gcc that came with the OS (RedHat 6.0) and there's
> virtually no difference in performance on the DS10!
>
> Any ideas?
>
> - Jimmy
> Software Engineer, Department of Molecular Biotechnology
> University of Washington
I personally use '-fast -O4' as my optimization options. If
you're doing FFTs, maybe you should look into 'cxml', which
is available from the same place you got the compiler. It
has FFTs in it that (I'm assuming) Compaq (probably actually
Digital) optimized already for your architecture.
If ccc isn't faster than gcc, there's something wrong. How
explicit is your FFT code? Do you do a lot of 'a = b * c;'
type of statements, or are there more function calls? I've
found that the optimizer likes long chains of explicit
statements, it gives the scheduler more to chew on so it can
avoid pipeline stalls (which gcc doesn't even look at).
If you try out cxml, could you write back to the group and
tell us what the performance characteristics are? We'd
really appreciate it.
Regards,
Tony Hammitt
thammitt@kc.rr.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-05 5:00 ` Tony Hammitt
@ 1999-11-05 5:00 ` Robert Harley
1999-11-05 5:00 ` Tony Hammitt
0 siblings, 1 reply; 8+ messages in thread
From: Robert Harley @ 1999-11-05 5:00 UTC (permalink / raw)
Tony Hammitt wrote:
> If ccc isn't faster than gcc, there's something wrong.
Rubbish.
Rob.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-05 5:00 ` Robert Harley
@ 1999-11-05 5:00 ` Tony Hammitt
0 siblings, 0 replies; 8+ messages in thread
From: Tony Hammitt @ 1999-11-05 5:00 UTC (permalink / raw)
Robert Harley wrote:
>
> Tony Hammitt wrote:
> > If ccc isn't faster than gcc, there's something wrong.
>
> Rubbish.
>
> Rob.
OK, let me qualify that a little. Ccc is almost always faster
than gcc on numerical code, esp. with lots of opportunities
for the vastly superior instruction scheduling algorithms ccc
has. I've seen gcc -O3 go slower than -O0 because of these
scheduling problems.
Maybe someday, someone at Compaq will help out the gcc project
with optimization. We can hope. Does the license permit us to
look at the generated opcodes? That and a dedicated gear head
could benefit gcc greatly. I'd love to sponsor such a project
(just let me make some more money first :-)
I have done experiments with many types of code and the smallest
speedup I got with ccc is 15%. Taken out of context, my statement
above does seem rather bald; in the context of well-coded
numerical algorithms I'm willing to bet I'm right.
Tony
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-04 5:00 Compaq C-compiler - what am I doing wrong? Jimmy Eng
1999-11-05 5:00 ` Tony Hammitt
@ 1999-11-05 5:00 ` Reg Clemens
1999-11-05 5:00 ` Greg Lindahl
1999-11-09 5:00 ` Wong Yeow Whye
2 siblings, 1 reply; 8+ messages in thread
From: Reg Clemens @ 1999-11-05 5:00 UTC (permalink / raw)
To: Jimmy Eng
In article <7vsosn$qfi$1@nntp6.u.washington.edu>,
you write:
|> I'm looking a bit of help here. I have a DS10 that
|> has Linux 2.2.12 installed on it along with the latest
|> Compaq C-compiler beta release (ccc-6.2.0-8.alpha.rpm).
|>
|> I was hoping to see the 466MHz DS10 outperform my the
|> current 533MHz 164LX Alphas that I currently have in
|> my cluster. However, performance for my application is
|> actually slower on the DS10 than on the 164LX's (as well
|> as a 500MHz 21164A AlphaStation 500). The difference in
|> performance could be on the order of the difference in
|> clock speeds but I don't have the numbers in front of
|> me to verify exactly.
|>
|> Anyways, it appears that something's not working right
|> for me obviously since the performance of the DS10 should
|> be better. I've looped through a portion of my application
|> that calculates FFTs and timed the ccc (Compaq's C) compiler
|> (turning on optmizations including -tune host -arch host)
|> against gcc that came with the OS (RedHat 6.0) and there's
|> virtually no difference in performance on the DS10!
|>
|> Any ideas?
|>
|> - Jimmy
|> Software Engineer, Department of Molecular Biotechnology
|> University of Washington
I have done some MINIMAL testing with three different codes.
The one that is basically FFTs showed NO speed increase (well mabe a couple
three percent,- I dont have the numbers here).
Other codes showed x3-x5 speed increase.
I have to believe that a FFT is 'obvious' enough code that even gcc
generates optimal code.
Reg.Clemens
reg@dwf.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-05 5:00 ` Reg Clemens
@ 1999-11-05 5:00 ` Greg Lindahl
1999-11-06 5:00 ` Stuart Midgley
0 siblings, 1 reply; 8+ messages in thread
From: Greg Lindahl @ 1999-11-05 5:00 UTC (permalink / raw)
reg@clemens.dwf.com (Reg Clemens) writes:
> I have done some MINIMAL testing with three different codes.
> The one that is basically FFTs showed NO speed increase (well mabe a couple
> three percent,- I dont have the numbers here).
On FFTW, I believe that ccc is about 2x as fast as gcc. I suspect that
your FFT isn't optimal. Perhaps it is implemented using library
routines? Slow, dominated by the library, so gcc would be about the
same as ccc...
-- g
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-05 5:00 ` Greg Lindahl
@ 1999-11-06 5:00 ` Stuart Midgley
0 siblings, 0 replies; 8+ messages in thread
From: Stuart Midgley @ 1999-11-06 5:00 UTC (permalink / raw)
I use fftw from
www.fftw.org
which is about twice as fast as the cxml (or dxml) libraries for my
systems.
The version I compiled with ccc (an linux) and cc (on Tru64) is about
30% faster than the version compiled with gcc.
That said, the gcc version of fftw is still very fast.
Stu.
Greg Lindahl wrote:
>
> reg@clemens.dwf.com (Reg Clemens) writes:
>
> > I have done some MINIMAL testing with three different codes.
> > The one that is basically FFTs showed NO speed increase (well mabe a couple
> > three percent,- I dont have the numbers here).
>
> On FFTW, I believe that ccc is about 2x as fast as gcc. I suspect that
> your FFT isn't optimal. Perhaps it is implemented using library
> routines? Slow, dominated by the library, so gcc would be about the
> same as ccc...
>
> -- g
--
<--------------------------------------------------------------------->
Stuart Midgley | stuart@physics.uwa.edu.au
Department of Physics | +61 8 9380 7898 Work
University of Western Australia | +61 8 9380 1014 Fax
Nedlands WA 6907 | 0413 565920 Mob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compaq C-compiler - what am I doing wrong?
1999-11-04 5:00 Compaq C-compiler - what am I doing wrong? Jimmy Eng
1999-11-05 5:00 ` Tony Hammitt
1999-11-05 5:00 ` Reg Clemens
@ 1999-11-09 5:00 ` Wong Yeow Whye
2 siblings, 0 replies; 8+ messages in thread
From: Wong Yeow Whye @ 1999-11-09 5:00 UTC (permalink / raw)
Both the 164 and the 264 have 2 fp units, the difference being that the
264 supports OOO while the 164 does not. So in theory, at X MHz, you can
expect 2X Mflops PEAK on the 164 and 2X Mflops SUSTAINED on the 264.
Conversely, if you can get both your 164's fp units working, you can also
expect to see 2X Mflops. (Why, I know of a guy who's getting almost
1.2Gflops sustained doing matrix computations on his LX 600MHz).
I am very rusty with FFTs (touch and go affair during my undergraduate
days eons ago) but IIRC, it is basically MAC type of operations. So if
your program is well-optimised, you will have have one fp unit doing the
multiplies and the other doing the adds - in-order execution of your code
with both fp units busy. The 264's OOO support serves little or no purpose
here. Hence, all else being equal, clock speed will be the deciding
factor.
Stephen Wong
Department of Computational Science
National University of Singapore
Jimmy Eng (engj@u.washington.edu) wrote:
: I'm looking a bit of help here. I have a DS10 that
: has Linux 2.2.12 installed on it along with the latest
: Compaq C-compiler beta release (ccc-6.2.0-8.alpha.rpm).
: I was hoping to see the 466MHz DS10 outperform my the
: current 533MHz 164LX Alphas that I currently have in
: my cluster. However, performance for my application is
: actually slower on the DS10 than on the 164LX's (as well
: as a 500MHz 21164A AlphaStation 500). The difference in
: performance could be on the order of the difference in
: clock speeds but I don't have the numbers in front of
: me to verify exactly.
: Anyways, it appears that something's not working right
: for me obviously since the performance of the DS10 should
: be better. I've looped through a portion of my application
: that calculates FFTs and timed the ccc (Compaq's C) compiler
: (turning on optmizations including -tune host -arch host)
: against gcc that came with the OS (RedHat 6.0) and there's
: virtually no difference in performance on the DS10!
: Any ideas?
: - Jimmy
: Software Engineer, Department of Molecular Biotechnology
: University of Washington
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1999-11-09 5:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-04 5:00 Compaq C-compiler - what am I doing wrong? Jimmy Eng
1999-11-05 5:00 ` Tony Hammitt
1999-11-05 5:00 ` Robert Harley
1999-11-05 5:00 ` Tony Hammitt
1999-11-05 5:00 ` Reg Clemens
1999-11-05 5:00 ` Greg Lindahl
1999-11-06 5:00 ` Stuart Midgley
1999-11-09 5:00 ` Wong Yeow Whye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox