* gcc speed
@ 1999-03-05 12:57 Jochen Kuepper
1999-03-05 13:09 ` Greg Lindahl
1999-03-05 13:24 ` Martin Kahlert
0 siblings, 2 replies; 7+ messages in thread
From: Jochen Kuepper @ 1999-03-05 12:57 UTC (permalink / raw)
To: Linux/AXP, egcs mailing list
Citing from http://www.cs.utk.edu/~rwhaley/ATLAS/errata.html:
Dec ALPHA compilers
If you are using a DEC Alpha, it is extremely important to use gnu gcc,
rather than egcs gcc. On my 533Mhz Dec ALPHA, using egcs 1.1.1 and gnu gcc
2.8.1, gcc provides roughly 590 Mflop DGEMM, whereas egcs results in 520 or
so. User's of DEC unix should be aware that cc should not be used to compile
the generated code. The compiler does not allow the turning off of
optimizations that cause optimal code to run slower, so you should compile
these routines with gcc.
[snip]
What do you think about that. Has anybody else some numbers to compare ?
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen Küpper
Heinrich-Heine-Universität Düsseldorf jochen@uni-duesseldorf.de
Institut für Physikalische Chemie I
Universitätsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 Düsseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 12:57 gcc speed Jochen Kuepper
@ 1999-03-05 13:09 ` Greg Lindahl
1999-03-05 14:20 ` Jochen Kuepper
1999-03-05 13:24 ` Martin Kahlert
1 sibling, 1 reply; 7+ messages in thread
From: Greg Lindahl @ 1999-03-05 13:09 UTC (permalink / raw)
To: axp-list
> Dec ALPHA compilers
>
> If you are using a DEC Alpha, it is extremely important to use gnu gcc,
> rather than egcs gcc. On my 533Mhz Dec ALPHA, using egcs 1.1.1 and gnu gcc
> 2.8.1, gcc provides roughly 590 Mflop DGEMM, whereas egcs results in 520 or
> so. User's of DEC unix should be aware that cc should not be used to compile
> the generated code. The compiler does not allow the turning off of
> optimizations that cause optimal code to run slower, so you should compile
> these routines with gcc.
> [snip]
Note that he is talking about inline assembly, not actual C code.
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 12:57 gcc speed Jochen Kuepper
1999-03-05 13:09 ` Greg Lindahl
@ 1999-03-05 13:24 ` Martin Kahlert
1 sibling, 0 replies; 7+ messages in thread
From: Martin Kahlert @ 1999-03-05 13:24 UTC (permalink / raw)
To: axp-list
Quoting Jochen Kuepper (jochen@uni-duesseldorf.de):
> What do you think about that. Has anybody else some numbers to compare ?
egcs-1.1.1 is not the big runner. On my Pentium Pro 200 a tested
it with a small wavlet transformation routine. (It's a convolution)
Here are the results:
gcc-2.7.2.1 : 99.68 MFLOPS
egcs-1.1.1 : 54.95 MFLOPS
pgcc-1.1.1 : 97.10 MFLOPS (an egcs version for pentium processors)
egcs-snapshot: 98.81 MFLOPS (egcs-2.93.10 19990228)
Soon after egcs-1.1 was out, i saw a near factor 2 improvement of
runtime in executables created by the snapshots.
These will be in egcs-1.2 (not in egcs-1.1.2).
I don't have my Alpha handy now, but i think the snapshots became
much better there, too.
But: I don't think it's good to use gcc-2.8.1 on Alphas. A lot
fixes/improvements have been made in egcs especially for Alpha.
(Red Hat ships egcs on Alphas, not gcc-2.8.1, i think!)
Martin.
--
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 13:09 ` Greg Lindahl
@ 1999-03-05 14:20 ` Jochen Kuepper
1999-03-05 14:27 ` Greg Lindahl
0 siblings, 1 reply; 7+ messages in thread
From: Jochen Kuepper @ 1999-03-05 14:20 UTC (permalink / raw)
To: axp-list
On Fre, 05 Mär 1999 Greg Lindahl wrote:
>> Dec ALPHA compilers
>>
>> If you are using a DEC Alpha, it is extremely important to use gnu gcc,
>> rather than egcs gcc. On my 533Mhz Dec ALPHA, using egcs 1.1.1 and gnu gcc
>> 2.8.1, gcc provides roughly 590 Mflop DGEMM, whereas egcs results in 520 or
>> so. User's of DEC unix should be aware that cc should not be used to compile
>> the generated code. The compiler does not allow the turning off of
>> optimizations that cause optimal code to run slower, so you should compile
>> these routines with gcc.
>> [snip]
>
>Note that he is talking about inline assembly, not actual C code.
So why is there a difference in the code generated from the assembly between
gcc-2.8.1 and egcs-1.1.x ?
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen Küpper
Heinrich-Heine-Universität Düsseldorf jochen@uni-duesseldorf.de
Institut für Physikalische Chemie I
Universitätsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 Düsseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 14:20 ` Jochen Kuepper
@ 1999-03-05 14:27 ` Greg Lindahl
1999-03-05 15:45 ` Christopher C Chimelis
1999-03-05 15:51 ` Jochen Kuepper
0 siblings, 2 replies; 7+ messages in thread
From: Greg Lindahl @ 1999-03-05 14:27 UTC (permalink / raw)
To: axp-list
> >Note that he is talking about inline assembly, not actual C code.
>
> So why is there a difference in the code generated from the assembly between
> gcc-2.8.1 and egcs-1.1.x ?
When you use assembly with gcc, it runs it through the optimizer. In
some cases this makes the code better; if the code is great to start
with, it often makes it worse. The complaint about egcs is that you
can't turn off the optimizer.
For C or Fortran code on the Alpha, egcs probably always produces
faster code.
-- g
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 14:27 ` Greg Lindahl
@ 1999-03-05 15:45 ` Christopher C Chimelis
1999-03-05 15:51 ` Jochen Kuepper
1 sibling, 0 replies; 7+ messages in thread
From: Christopher C Chimelis @ 1999-03-05 15:45 UTC (permalink / raw)
To: axp-list
On Fri, 5 Mar 1999, Greg Lindahl wrote:
> When you use assembly with gcc, it runs it through the optimizer. In
> some cases this makes the code better; if the code is great to start
> with, it often makes it worse. The complaint about egcs is that you
> can't turn off the optimizer.
Have you tried an egcs without the Haifa optimiser enabled? This is most
likely the optimisation that is causing you the degraded performance. For
C, F77, and C++, it tends to do well (although I have seen exceptions).
Try recompiling egcs with the --disable-haifa switch passed to configure
and try recomparing. Unfortunately, too little progress has been made on
gcc 2.8.x for Alphas of late for me to switch.
> For C or Fortran code on the Alpha, egcs probably always produces
> faster code.
I would say "almost always". There have been exceptions in the past,
although I haven't run tests in awhile.
C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gcc speed
1999-03-05 14:27 ` Greg Lindahl
1999-03-05 15:45 ` Christopher C Chimelis
@ 1999-03-05 15:51 ` Jochen Kuepper
1 sibling, 0 replies; 7+ messages in thread
From: Jochen Kuepper @ 1999-03-05 15:51 UTC (permalink / raw)
To: axp-list, Greg Lindahl
On Fre, 05 Mär 1999 Greg Lindahl wrote:
>> >Note that he is talking about inline assembly, not actual C code.
>>
>> So why is there a difference in the code generated from the assembly between
>> gcc-2.8.1 and egcs-1.1.x ?
>
>When you use assembly with gcc, it runs it through the optimizer. In
>some cases this makes the code better; if the code is great to start
>with, it often makes it worse. The complaint about egcs is that you
>can't turn off the optimizer.
>
>For C or Fortran code on the Alpha, egcs probably always produces
>faster code.
Well, probably I should ask this the egcs people, but still:
What does gcc -O0 do ? Still going through the optimizer ?
Moreover as I understood the missing feature to turn off optimization was meant
for DU cc ?
Btw: I am happy with egcs (+libffm, testing libcpml right now) for my mixed
C++/FORTRAN project, there are several pros so I wouldn't even think about
switching to gcc-2.8 or any other suite, still I am wondering why gcc-2.8
should be so much faster (590 vs 520) ?
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen Küpper
Heinrich-Heine-Universität Düsseldorf jochen@uni-duesseldorf.de
Institut für Physikalische Chemie I
Universitätsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 Düsseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-03-05 16:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-05 12:57 gcc speed Jochen Kuepper
1999-03-05 13:09 ` Greg Lindahl
1999-03-05 14:20 ` Jochen Kuepper
1999-03-05 14:27 ` Greg Lindahl
1999-03-05 15:45 ` Christopher C Chimelis
1999-03-05 15:51 ` Jochen Kuepper
1999-03-05 13:24 ` Martin Kahlert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox