* Performance Comparison of Compilers
@ 1999-01-20 17:52 Dr J Pelan
1999-01-21 7:25 ` Piotr A Dybczynski
0 siblings, 1 reply; 7+ messages in thread
From: Dr J Pelan @ 1999-01-20 17:52 UTC (permalink / raw)
At the moment it seems, at least to me, particularly difficult to pin down
exactly how good or bad the free compilers (egcs/gcc) are against the DEC
compilers unless one actually has access to the various machines. One can
glean snippets here and there (from Dejanews say) but it isn't always
clear what was done and the comparisons are but for a single program.
What I would like to see established is an ongoing comparison of the
compilers using some agreed 'trivial' or real world benchmarks in C and
Fortran. I'm thinking of something along the lines of running say five
programs in the following combinations on the same architecture;
o Digital Unix & DEC C (Fortran)
o Digital Unix & egcs (g77)
o Linux & egcs (g77) with compiled libraries
o Linux & egcs (g77) with hand-coded libraries
I'd do this myself if I had access to such machines but I don't (at least
not yet) but perhaps the list members could provide suitable programs and
patch the information together ? The only catch is this would have to be
repeated where any component, particularly egcs, is subsequently updated.
The influence of compiler options is also useful information.
I'm sure some people must be already be performing tests of this kind.
John P.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
1999-01-20 17:52 Dr J Pelan
@ 1999-01-21 7:25 ` Piotr A Dybczynski
0 siblings, 0 replies; 7+ messages in thread
From: Piotr A Dybczynski @ 1999-01-21 7:25 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3336 bytes --]
The list is alive! Great!
On Wed, 20 Jan 1999, Dr J Pelan wrote:
> At the moment it seems, at least to me, particularly difficult to pin down
> exactly how good or bad the free compilers (egcs/gcc) are against the DEC
> compilers unless one actually has access to the various machines. One can
> glean snippets here and there (from Dejanews say) but it isn't always
> clear what was done and the comparisons are but for a single program.
As a novice in the alphalinux world, I must say that it is really
difficult for the begginer to obtain a valuable information, specyfying
the differences between several compilers and their relative power.
We bought at the Observatory our first alpha station (based on the
Microway PC164LX board (21164A/533MHz, 512 MB RAM) planning to use in
under Linux. We hawe a lot of experience with i386 Linux machines so we
hoped it will be easy to switch to alpha. After a month of reading and
experimenting, I still don't know how good is egcs when compiling for
alpha (-m21164a). I read hundrets of pages on alpha architecture, on
optimizing for alpha , on NDP optimizing compilers etc. Finally I came to
the conclusion, that Microway NDP Fortran seems to be the only tool,
dedicated for this processor. They say in Microway, that they do not ofer
a C compiler for alphalinux becouse egcs is preety good but from my
investigations it seems that the best way is to produce .o files with egcs
and then let NDP optimize it for particular architecture.
All above is a theoretical result, I am serching for arguments whether to
buy NDP Fortran compiler from Microway or not. My work will be in C, so I
will not use their product as a whole.
Any comments from experienced users?
> What I would like to see established is an ongoing comparison of the
> compilers using some agreed 'trivial' or real world benchmarks in C and
> Fortran. I'm thinking of something along the lines of running say five
> programs in the following combinations on the same architecture;
>
> o Digital Unix & DEC C (Fortran)
> o Digital Unix & egcs (g77)
> o Linux & egcs (g77) with compiled libraries
> o Linux & egcs (g77) with hand-coded libraries
The above should be extended to NDP compilers!
> I'd do this myself if I had access to such machines but I don't (at least
> not yet) but perhaps the list members could provide suitable programs and
> patch the information together ?
It might be very helpful and informative both for beginers and experienced
users. Please accept me as a volunteer for any tests on my AlphaLinux
machine (21164A/533MHz/512MB RAM/no graphics/3,4 GB SCSI HD).
I have some experience in Fortran (IBM360 etc) but strongly prefer to work
in C.
> I'm sure some people must be already be performing tests of this kind.
I am not ready but I hope to be in a week or two.
Greetings to all of you,
Piotr
PS. Sorry for my poor english....
/*****************************************************************************
Piotr A. Dybczynski e-mail: dybol@amu.edu.pl
Astronomical Observatory, A.Mickiewicz University
tel +48(61)8679670, fax:+48(61)8686511, Sloneczna 36, 60-286 Poznan, POLAND
**********************************************************************PAD***/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
@ 1999-01-21 15:37 esci
1999-01-21 18:07 ` Claus Denk
0 siblings, 1 reply; 7+ messages in thread
From: esci @ 1999-01-21 15:37 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1995 bytes --]
I got a similar 533 LX from Microway and NDP FORTRAN. After some testing, I
returned the compiler and converted to DU. Unfortunately, I can't say the
conversion was an overwhelming success. For all its flaws Linux is at least
as good as DU if not better. The performance of the DU compilers is quite
good. Other aspects are less satisfactory. One of my motivations for the
conversion was the very weak FORTRAN support in gdb. As it turns out, the
DU debuggers are as bad or worse. There is no support at all for any intrinsics
or the exponential.
print sin(x)**b
just produces error messages from ladebug(1). dbx is even worse!
Performance of NDP FORTRAN was rather varied. For simple tests such as dot
products and polynomial evaluations, it was within 10-20% of the DU performance.
For another test, my actual problem, it was 3 times slower. This is because
of the handling of sqrt(). The problem has 3 sqrt() operations per loop
iteration. Interestingly, in some case g77 was faster than NDP, though in
general NDP produced much quicker runs. The documentation of NDP is a bit
weak though. The only real discussion of the compiler flags is the tutorial
that Fried has on the Microway web page.
In retrospect, unless you absolutely have to have the best possible performance
on a wide range of problems, the NDP compiler is a pretty good choice. It
is certainly far cheaper than the almost $2500 license fee for DU & Digital
FORTRAN. Mike Warren et al report using the Gnu tools w/ the dgemm routines.
If your problem is concentrated in a small loop consider just hand optimizing
the code produced by gcc & g77 after you get it written and debugged.
Note that although it appears to be possible to run DU code on a Linux box,
there seem to be licensing issues. I've not looked into these yet. I
will probably simply let DU generate assembly sequences which I will then
move to Linux for assembly and linking.
Reg Beardsley
rhb@acm.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
1999-01-21 15:37 Performance Comparison of Compilers esci
@ 1999-01-21 18:07 ` Claus Denk
1999-01-21 19:46 ` Michal Jaegermann
0 siblings, 1 reply; 7+ messages in thread
From: Claus Denk @ 1999-01-21 18:07 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4637 bytes --]
Hi all,
> Note that although it appears to be possible to run DU code on a Linux box,
> there seem to be licensing issues. I've not looked into these yet. I
> will probably simply let DU generate assembly sequences which I will then
> move to Linux for assembly and linking.
Yes, it is illegal to run DU statically linked code on a linux alpha box
(due to the licensed libraries that are linked). There were some efforts
on the axp list to write libraries that could dynamically be linked
against DU code (this would be legal), but I don't know if anyone has
continued this work.
Generating DU assembly code and doing the assemply on linux isn't a
solution neither, as the gnu assembler doesn't understand all the assembly
code produced by the Du compilers. You will have to know how to handcode
assembly on the alpha ....
I can't give you any comparisons for the egcs compilers, but I can
contribute with a DU f77 (V4.1, options -O4 I believe) and a
g77 0.5.21 (-O2 -funroll-loops) comparison. The benchmarks are the
livermore loops, the geometric mean of the following results is a number
that represents quite well the performance that I see in my various
programs:
ALPHA 21164 500Mhz/1Mb cache, DEC f77 V4.1 (-O4), RH Linux 4.2:
---------------------------------------------------------------
MFLOPS RANGE: REPORT ALL RANGE STATISTICS:
Mean DO Span = 167
Code Samples = 72
Maximum Rate = 276.4885 Mega-Flops/Sec.
Quartile Q3 = 116.1047 Mega-Flops/Sec.
Average Rate = 91.7861 Mega-Flops/Sec.
Geometric Mean = 73.6158 Mega-Flops/Sec.
Median Q2 = 73.3668 Mega-Flops/Sec.
Harmonic Mean = 56.3082 Mega-Flops/Sec.
Quartile Q1 = 50.0282 Mega-Flops/Sec.
Minimum Rate = 10.6042 Mega-Flops/Sec.
Standard Dev. = 60.0277 Mega-Flops/Sec.
Avg Efficiency = 26.63% Program & Processor
Mean Precision = 15.90 Decimal Digits
ALPHA 21164 500Mhz/1Mb cache, g77 0.5.21 (-O2 -funroll-loops), RH 4.2:
----------------------------------------------------------------------
MFLOPS RANGE: REPORT ALL RANGE STATISTICS:
Mean DO Span = 167
Code Samples = 72
Maximum Rate = 194.4802 Mega-Flops/Sec.
Quartile Q3 = 70.2215 Mega-Flops/Sec.
Average Rate = 61.7432 Mega-Flops/Sec.
Geometric Mean = 50.0105 Mega-Flops/Sec.
Median Q2 = 55.0838 Mega-Flops/Sec.
Harmonic Mean = 33.8270 Mega-Flops/Sec.
Quartile Q1 = 37.4901 Mega-Flops/Sec.
Minimum Rate = 3.9221 Mega-Flops/Sec.
Standard Dev. = 39.0908 Mega-Flops/Sec.
Avg Efficiency = 25.71% Program & Processor
Mean Precision = 15.90 Decimal Digits
Just for comparison:
Pentium II 400 MHz, g77 0.5.18, -O2 -funroll-loops, RH Linux 5.?:
-----------------------------------------------------------------
MFLOPS RANGE: REPORT ALL RANGE STATISTICS:
Mean DO Span = 167
Code Samples = 72
Maximum Rate = 239.0417 Mega-Flops/Sec.
Quartile Q3 = 87.7879 Mega-Flops/Sec.
Average Rate = 73.8423 Mega-Flops/Sec.
Geometric Mean = 61.2890 Mega-Flops/Sec.
Median Q2 = 67.0473 Mega-Flops/Sec.
Harmonic Mean = 43.8180 Mega-Flops/Sec.
Quartile Q1 = 52.1202 Mega-Flops/Sec.
Minimum Rate = 6.4813 Mega-Flops/Sec.
Standard Dev. = 42.3088 Mega-Flops/Sec.
Avg Efficiency = 25.64% Program & Processor
Mean Precision = 12.69 Decimal Digits
A very poor result for g77 can be obtained by comparing the original
Netlib BLAS routines SGEMM and DGEMM (matrix matrix multiplication)
routines (rates in MFLOPS, mean values over matrix sizes 32x32 up to
128x128 in steps of 32):
g77 0.5.21 DU
SGEMM 27 144
DGEMM 26 115
I suppose that the egcs compilers have improved these numbers
quite a bit !
regards, Claus
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
@ 1999-01-21 18:32 Stefan Schroepfer
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Schroepfer @ 1999-01-21 18:32 UTC (permalink / raw)
Piotr A Dybczynski wrote:
>
> optimizing for alpha , on NDP optimizing compilers etc. Finally I came to
> the conclusion, that Microway NDP Fortran seems to be the only tool,
> dedicated for this processor. They say in Microway, that they do not ofer
> a C compiler for alphalinux becouse egcs is preety good but from my
> investigations it seems that the best way is to produce .o files with egcs
> and then let NDP optimize it for particular architecture.
Microway NDP Fortran (re-)optimizes already compiled (and thus
optimized) objects files?
Stefan Schroepfer
scr@iis.fhg.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
1999-01-21 18:07 ` Claus Denk
@ 1999-01-21 19:46 ` Michal Jaegermann
1999-01-21 20:17 ` Claus Denk
0 siblings, 1 reply; 7+ messages in thread
From: Michal Jaegermann @ 1999-01-21 19:46 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
Claus Denk wrote:
>
> A very poor result for g77 can be obtained by comparing the original
> Netlib BLAS routines SGEMM and DGEMM (matrix matrix multiplication)
> routines (rates in MFLOPS, mean values over matrix sizes 32x32 up to
> 128x128 in steps of 32):
>
> g77 0.5.21 DU
> SGEMM 27 144
> DGEMM 26 115
Hm, using libraries written specifically for Linux/Alpha I measured g77
(egcs) compiled SGEMM/DGEMM on UX in 700 and over MFLOPS range. No,
this is not a typo. "Raw" stuff from netlib, which is definitely
not written for alpha or other RISC, was also much higher than numbers
qouted above.
If you would rummage a bit in this list archives you would find
out how to get these results as well.
--mj
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Performance Comparison of Compilers
1999-01-21 19:46 ` Michal Jaegermann
@ 1999-01-21 20:17 ` Claus Denk
0 siblings, 0 replies; 7+ messages in thread
From: Claus Denk @ 1999-01-21 20:17 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]
On Thu, 21 Jan 1999, Michal Jaegermann wrote:
> Claus Denk wrote:
> >
> > A very poor result for g77 can be obtained by comparing the original
> > Netlib BLAS routines SGEMM and DGEMM (matrix matrix multiplication)
> > routines (rates in MFLOPS, mean values over matrix sizes 32x32 up to
> > 128x128 in steps of 32):
> >
> > g77 0.5.21 DU
> > SGEMM 27 144
> > DGEMM 26 115
>
> Hm, using libraries written specifically for Linux/Alpha I measured g77
> (egcs) compiled SGEMM/DGEMM on UX in 700 and over MFLOPS range. No,
> this is not a typo. "Raw" stuff from netlib, which is definitely
> not written for alpha or other RISC, was also much higher than numbers
> qouted above.
>
> If you would rummage a bit in this list archives you would find
> out how to get these results as well.
I know it's possible to do it faster than that, but the point is that
these are the results I got for the "raw" netlib version. I would be
surprised if anyone would get a much better result with the original
netlib code (and this kind of matrix multiplication code is what the
vast mayority of programmers use ...)
regards, Claus
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-01-21 20:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-21 15:37 Performance Comparison of Compilers esci
1999-01-21 18:07 ` Claus Denk
1999-01-21 19:46 ` Michal Jaegermann
1999-01-21 20:17 ` Claus Denk
-- strict thread matches above, loose matches on Subject: below --
1999-01-21 18:32 Stefan Schroepfer
1999-01-20 17:52 Dr J Pelan
1999-01-21 7:25 ` Piotr A Dybczynski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox