* poor gcc performance
@ 1999-09-17 4:00 will239
1999-09-17 4:00 ` Greg Lindahl
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: will239 @ 1999-09-17 4:00 UTC (permalink / raw)
Hi,
Specfp95 indicates that an alpha 21164A 533 should be a bit more than
twice as fast as a celeron 333. With some of my own fp source code and
the gcc compiler I am getting them to be more like equals. I have
downloaded and installed the fast math libraries for the alpha (libfm).
Also, I set the compile options as follows:
CC = gcc
OPTSPENT = -O2 -mpentium \
-fomit-frame-pointer -fno-strength-reduce -pipe -malign-loops=2 \
-malign-jumps=2 -malign-functions=2 -fshort-enums -fno-common
OPTSALPHA = -O2 -mcpu=ev56 \
-fomit-frame-pointer -fno-strength-reduce -pipe \
-fshort-enums -fno-common
Is this expected performance or can I do better? I know there is a beta
c compiler from compaq but I really need c++ for most of my work.
Thanks,
Will
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: poor gcc performance
1999-09-17 4:00 poor gcc performance will239
@ 1999-09-17 4:00 ` Greg Lindahl
1999-09-17 4:00 ` Matthew R. Pavlovich
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Greg Lindahl @ 1999-09-17 4:00 UTC (permalink / raw)
will239@my-deja.com writes:
> Is this expected performance or can I do better? I know there is a beta
> c compiler from compaq but I really need c++ for most of my work.
Compaq's C++ compiler ought to be entering beta reasonably soon.
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: poor gcc performance
1999-09-17 4:00 poor gcc performance will239
1999-09-17 4:00 ` Greg Lindahl
@ 1999-09-17 4:00 ` Matthew R. Pavlovich
1999-09-18 4:00 ` Eberhard Burr
1999-09-22 4:00 ` Johannes Nix
3 siblings, 0 replies; 7+ messages in thread
From: Matthew R. Pavlovich @ 1999-09-17 4:00 UTC (permalink / raw)
To: will239
> Is this expected performance or can I do better? I know there is a beta
> c compiler from compaq but I really need c++ for most of my work.
My experience has been that compile *times* are about comprable on my
21164 500Mhz and a PII 400. Its what I get, not a good benchmark.
I'd be interested in you running your local copy of fp with the compaq
compiler, just to give us some idea of how they are doing.
Matt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: poor gcc performance
1999-09-17 4:00 poor gcc performance will239
1999-09-17 4:00 ` Greg Lindahl
1999-09-17 4:00 ` Matthew R. Pavlovich
@ 1999-09-18 4:00 ` Eberhard Burr
1999-09-22 4:00 ` Johannes Nix
3 siblings, 0 replies; 7+ messages in thread
From: Eberhard Burr @ 1999-09-18 4:00 UTC (permalink / raw)
will239@my-deja.com writes:
> Specfp95 indicates that an alpha 21164A 533 should be a bit more than
> twice as fast as a celeron 333. With some of my own fp source code and
> the gcc compiler I am getting them to be more like equals. I have
> downloaded and installed the fast math libraries for the alpha (libfm).
> Also, I set the compile options as follows:
>
> CC = gcc
>
> OPTSPENT = -O2 -mpentium \
> -fomit-frame-pointer -fno-strength-reduce -pipe -malign-loops=2 \
> -malign-jumps=2 -malign-functions=2 -fshort-enums -fno-common
>
> OPTSALPHA = -O2 -mcpu=ev56 \
> -fomit-frame-pointer -fno-strength-reduce -pipe \
> -fshort-enums -fno-common
>
>
> Is this expected performance or can I do better? I know there is a beta
> c compiler from compaq but I really need c++ for most of my work.
In a different thread (~1 week ago), i wrote something about ieee and
arithmetic exceptions. I've now experimented some more and found the
following:
o the performance hit one gets from using the -mieee flag with gcc
depends largely on the sort of fp one is doing: with tons of
simple arithmetic like multiplications and subtractions, the hit
can be considerable while with more complex things like sine and
exponentials, it's not much.
o compaq's libcpml is _fast_ and does the right thing wrt to
arithmetic exceptions. I've put that lib in place, compiled with
gcc -mieee -lcpml and now my SX164 533 blows away all pentia[1]. (My
code mainly consumes time in a rather small loop with lots of
cos() exp() and the like)
o given the fact above, I've changed my mind wrt to exception
handling; I'm now using the -mieee flag and gcc since I have yet
to get ccc to compile my main application (Khoros image
manipulation from www.khoral.com if that matters).
[1] well, at least all that I have access to. Fastest of them is a
dual P3-450 where the main loop of my code is not parallelized;
the SX is still about 1.5 times faster.
The problem that I still have is that ccc gives me unresolved symbols
in some places. (__builtin_next_arg and the like; I guess, I still
don't have all the libs in place or am missing some includes... )
kind Regards,
--
Eberhard Burr check http://www.uni-karlsruhe.de/~Eberhard.Burr/publickey.asc
for PGP Key -- #include <stddisc.h> -- electric cookie follows
Halley's Comet: It came, we saw, we drank.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: poor gcc performance
1999-09-17 4:00 poor gcc performance will239
` (2 preceding siblings ...)
1999-09-18 4:00 ` Eberhard Burr
@ 1999-09-22 4:00 ` Johannes Nix
1999-09-23 4:00 ` William Snyder
3 siblings, 1 reply; 7+ messages in thread
From: Johannes Nix @ 1999-09-22 4:00 UTC (permalink / raw)
will239@my-deja.com writes:
> Is this expected performance or can I do better? I know there is a beta
> c compiler from compaq but I really need c++ for most of my work.
>
Would it be possible to code the most critical lines in Fortran and
link this with the main program? Fortran should be faster than C..
Johannes
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: poor gcc performance
1999-09-22 4:00 ` Johannes Nix
@ 1999-09-23 4:00 ` William Snyder
1999-09-24 4:00 ` Greg Lindahl
0 siblings, 1 reply; 7+ messages in thread
From: William Snyder @ 1999-09-23 4:00 UTC (permalink / raw)
To: Johannes Nix
Johannes,
I haven't tried it yet, but I expect the gnu ELF's can't be linked with the
compaq DWARFS.
Will
Johannes Nix wrote:
> will239@my-deja.com writes:
>
> > Is this expected performance or can I do better? I know there is a beta
> > c compiler from compaq but I really need c++ for most of my work.
> >
>
> Would it be possible to code the most critical lines in Fortran and
> link this with the main program? Fortran should be faster than C..
>
> Johannes
--
William Snyder will@alumni.caltech.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-09-24 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-17 4:00 poor gcc performance will239
1999-09-17 4:00 ` Greg Lindahl
1999-09-17 4:00 ` Matthew R. Pavlovich
1999-09-18 4:00 ` Eberhard Burr
1999-09-22 4:00 ` Johannes Nix
1999-09-23 4:00 ` William Snyder
1999-09-24 4:00 ` Greg Lindahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox