* Fortran compiler for Linux/Alpha
@ 1996-10-16 8:45 Robert Rødsten
0 siblings, 0 replies; 13+ messages in thread
From: Robert Rødsten @ 1996-10-16 8:45 UTC (permalink / raw)
Hi, how is the performance of the gnu f2c and gnu g77 compiler using
linux/alpha? I was under the impression that you don't get the same
performance as from a linux/i386 solution. I would like to hear some
advices from someone who has experience on those compilers.
Thanks in advance.
Robert R|dsten
LinPro AS, Gaustadalleen 21
Phone: +47-22958439 Fax: +47-22604427
robertr@linpro.no
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
[not found] <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>
@ 1996-10-16 21:50 ` Dwight Hogge
1996-10-16 22:56 ` Scott Locklin ESG
1996-10-21 8:16 ` Nigel Sale
2 siblings, 0 replies; 13+ messages in thread
From: Dwight Hogge @ 1996-10-16 21:50 UTC (permalink / raw)
>
> Hi, how is the performance of the gnu f2c and gnu g77 compiler using
> linux/alpha? I was under the impression that you don't get the same
> performance as from a linux/i386 solution. I would like to hear some
> advices from someone who has experience on those compilers.
>
> Thanks in advance.
>
> Robert R|dsten
>
> LinPro AS, Gaustadalleen 21
> Phone: +47-22958439 Fax: +47-22604427
> robertr@linpro.no
>
I cannot speak for the earlier alpha CPUs, which might have very different
sensitivities to compiler optimization, but I have done some benchmarking
on my 300MHz EB164 that shows some very interesting results.
I have a set of benchmarks that use FFTs to test the speed of floating-point
processing. They are written in fortran and I have run them on several other
computer for which I have quoted numbers for SPECfp92. Here are comparisons
of some typical results:
system SPECfp92 my benchmark
------ -------- ------------
200MHz PPro 255 13.9
125MHz HP-735 203.8 12.7
99MHz HP-735 167.9 10.4
200MHz SGI Indigo 2 131 8.93
80MHz HP-712/80 121.8 7.97
A regression curve based on the HP workstations gives
SPECfp92 = 15.8 x (my benchmark).
My Alpha is said to have a SPECfp92 rating of 503, which would suggest that
it should achieve about 32 on my benchmark, If the HP scaling law holds.
I was able to get the manufacturer to run my benchmark prior to purchasing
the unit, but only on a similar system running DEC UNIX and DEC fortran. The
result of that test was 24.2, low but respectably close to the HP curve.
When I run my benchmark on my Alpha running Linux and using f2c/gcc the result
is 8.2 (only 34% of the result obtained with DEC software), very dissapointing.
I conclude that, at least for the 21164, compiler optimization is critical to
floating-point performance.
--
Dwight Hogge, Arete' Associates Telephone: (818) 501-2880
hogge@arete.com FAX: (818) 501-2905
hogge@vcnet.com Address: P.O. Box 6024
Sherman Oaks, CA 91413
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
[not found] <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>
1996-10-16 21:50 ` Dwight Hogge
@ 1996-10-16 22:56 ` Scott Locklin ESG
1996-10-21 8:16 ` Nigel Sale
2 siblings, 0 replies; 13+ messages in thread
From: Scott Locklin ESG @ 1996-10-16 22:56 UTC (permalink / raw)
On Wed, 16 Oct 1996, Robert Rxdsten wrote:
> Hi, how is the performance of the gnu f2c and gnu g77 compiler using
> linux/alpha? I was under the impression that you don't get the same
> performance as from a linux/i386 solution. I would like to hear some
> advices from someone who has experience on those compilers.
G77 doesn't quite work yet, apparently (though Craftworks claims to
have it).
f2c (using it by itself and with the various drivers) gives me bad results
with rather simple programs. I was using a simple, well known Runge-Kutta
diff eq solver (rkf45.f at netlib) which works fine on my HP palmtop,
various Suns, OSF/1 boxen and etc, but it won't work on Linux-AXP or
Linux-x86 using f2c. This has nothing to do with math libraries, unless it is
exception handling related, as RK algorithm doesn't use anything more
complicated than /.
-Scott
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
@ 1996-10-16 23:18 Michael J. Donahue
0 siblings, 0 replies; 13+ messages in thread
From: Michael J. Donahue @ 1996-10-16 23:18 UTC (permalink / raw)
Scott Locklin ESG <slocklin@mira.lbl.gov> wrote:
>f2c (using it by itself and with the various drivers) gives me bad results
>with rather simple programs. I was using a simple, well known Runge-Kutta
>diff eq solver (rkf45.f at netlib) which works fine on my HP palmtop,
>various Suns, OSF/1 boxen and etc, but it won't work on Linux-AXP or
>Linux-x86 using f2c. This has nothing to do with math libraries, unless it is
>exception handling related, as RK algorithm doesn't use anything more
>complicated than /.
I don't know if this is related, but I have a double-precision FFT
fortran code that only seems to produce single-precision results (as
compared to output from SGI and Digital Unix f77 compilers) using f2c
on Linux-x86. I haven't tried to track it down. (I also don't have a
Linux-AXP box yet. ;-( )
-mike
michael.donahue@nist.gov
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
[not found] <199610162150.OAA23968@topanga.arete.com>
@ 1996-10-17 12:15 ` Jim Nance
1996-10-17 17:41 ` Dwight Hogge
0 siblings, 1 reply; 13+ messages in thread
From: Jim Nance @ 1996-10-17 12:15 UTC (permalink / raw)
> > Hi, how is the performance of the gnu f2c and gnu g77 compiler using
> I have a set of benchmarks that use FFTs to test the speed of floating-point
> processing. They are written in fortran and I have run them on several other
Can you post the source code for these benchmarks? It looks like you have
a lot of data points, and having the code available might be a lot of use
to the f2c and gcc people. It would have been interesting to compile under
Digital Unix using f2c/cc to see if the problem was related to using f2c
or to using gcc.
Jim
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
@ 1996-10-17 15:44 Michael J. Donahue
0 siblings, 0 replies; 13+ messages in thread
From: Michael J. Donahue @ 1996-10-17 15:44 UTC (permalink / raw)
I wrote earlier:
>I don't know if this is related, but I have a double-precision FFT
>fortran code that only seems to produce single-precision results (as
>compared to output from SGI and Digital Unix f77 compilers) using f2c
>on Linux-x86. I haven't tried to track it down.
Just a follow-up that may be of interest to f2c users. The fortran
code
IMPLICIT DOUBLE PRECISION (A - H)
c72=0.30901699437494742
yields the following C code under f2c:
static doublereal c72;
c72 =(float).30901699437494742;
Why "float"? However, the following fortran source fixes the problem:
c72=DBLE(0.30901699437494742)
-mike
michael.donahue@nist.gov
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
@ 1996-10-17 16:59 Craig Burley
0 siblings, 0 replies; 13+ messages in thread
From: Craig Burley @ 1996-10-17 16:59 UTC (permalink / raw)
>Why "float"? However, the following fortran source fixes the problem:
>
> c72=DBLE(0.30901699437494742)
The constant is a single-precision floating-point constant. If you
want double-precision, which looks to be the case given all the digits
you've specified, rewrite the above statement to:
c72 = 0.30901699437494742d0
The "d0" says "this is a double-precision constant" just like the
appended "l" or "ll" tells C compilers that a constant is long or (for
gcc) long long. The "d0" makes _all_ standard-conforming Fortran
compilers interpret the constant as double-precision -- without it,
some will interpret it as single-precision and convert it, resulting
in a double-precision value that is likely to differ beyond the precision
offered by single-precision numbers on that machine.
The g77 documentation has a lot more to say about constants, and the
reason g77 doesn't attempt to use context to determine the intended type
of the constant (as some compilers do, leading to inconsistent behavior
in all sorts of cases).
If, after reading that, you have some desire to learn more about the
issue, comp.lang.fortran is a good place.
tq vm, (burley)
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
1996-10-17 12:15 ` Fortran compiler for Linux/Alpha Jim Nance
@ 1996-10-17 17:41 ` Dwight Hogge
1996-10-17 18:39 ` Jim Nance
0 siblings, 1 reply; 13+ messages in thread
From: Dwight Hogge @ 1996-10-17 17:41 UTC (permalink / raw)
>
> > > Hi, how is the performance of the gnu f2c and gnu g77 compiler using
>
> > I have a set of benchmarks that use FFTs to test the speed of floating-point
> > processing. They are written in fortran and I have run them on several other
>
> Can you post the source code for these benchmarks? It looks like you have
> a lot of data points, and having the code available might be a lot of use
> to the f2c and gcc people. It would have been interesting to compile under
> Digital Unix using f2c/cc to see if the problem was related to using f2c
> or to using gcc.
>
The source in at ftp://ftp.arete.com/pub/fft-benchmarks/unix; the results
and a readme file are in the directory above. If you prefer, go to URL
http://www.arete.com/~hogge.
I would find the f2c/DEC-cc results very interesting. It would also be
interesting to see the comparison between my fft benchmarks and the
SPECfp92 numbers for other alpha systems.
--
Dwight Hogge, Arete' Associates Telephone: (818) 501-2880
hogge@arete.com FAX: (818) 501-2905
hogge@vcnet.com Address: P.O. Box 6024
Sherman Oaks, CA 91413
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
@ 1996-10-17 18:25 Toon Moene
0 siblings, 0 replies; 13+ messages in thread
From: Toon Moene @ 1996-10-17 18:25 UTC (permalink / raw)
> Just a follow-up that may be of interest to f2c users.
> The fortran code
> IMPLICIT DOUBLE PRECISION (A - H)
> c72=0.30901699437494742
> yields the following C code under f2c:
> static doublereal c72;
> c72 =(float).30901699437494742;
> Why "float"? However, the following fortran source fixes
> the problem:
> c72=DBLE(0.30901699437494742)
Indeed - the whys of this are explained in the g77 docs :-)
Chapter 14.5 "Certain Changes We Don't Want to Make" second item.
-mike
michael.donahue@nist.gov
^^^^ National Institute of Standards and Technology
^^^^^^^^^
Interesting ...
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com <
/dev/null
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
1996-10-17 17:41 ` Dwight Hogge
@ 1996-10-17 18:39 ` Jim Nance
0 siblings, 0 replies; 13+ messages in thread
From: Jim Nance @ 1996-10-17 18:39 UTC (permalink / raw)
>
> The source in at ftp://ftp.arete.com/pub/fft-benchmarks/unix; the results
> and a readme file are in the directory above. If you prefer, go to URL
> http://www.arete.com/~hogge.
>
> I would find the f2c/DEC-cc results very interesting. It would also be
> interesting to see the comparison between my fft benchmarks and the
> SPECfp92 numbers for other alpha systems.
Thanks,
I have them now. It will be a few days before I can get to it though.
I think I have a FORTRAN license, but I don't know where the compiler is.
If I can find it I can generate both f2c and f77 executables.
Thanks,
Jim
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
@ 1996-10-18 5:24 Przemek Klosowski
0 siblings, 0 replies; 13+ messages in thread
From: Przemek Klosowski @ 1996-10-18 5:24 UTC (permalink / raw)
f2c (using it by itself and with the various drivers) gives me bad results
with rather simple programs. I was using a simple, well known Runge-Kutta
diff eq solver (rkf45.f at netlib) which works fine on my HP palmtop,
various Suns, OSF/1 boxen and etc, but it won't work on Linux-AXP or
I have often seen Fortran code that fails on f2c because of the
missing SAVE's, i.e. the code assuming that subroutine local variables
are preserved across different calls to this subroutine. This
assumption is not only invalid as per Fortran 77, but is even
mentioned as invalid in DEC VAX FORTRAN manual (VAX fortran is the
prototypical compiler which didn't require SAVEs; other compilers
often fake SAVEs just to avoid revealing this particular deficiency in
code being compiled)
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
[not found] <199610180524.BAA08287@rrdjazz.nist.gov>
@ 1996-10-18 12:47 ` Ulf Griesmann
0 siblings, 0 replies; 13+ messages in thread
From: Ulf Griesmann @ 1996-10-18 12:47 UTC (permalink / raw)
On Fri, 18 Oct 1996, Przemek Klosowski wrote:
> f2c (using it by itself and with the various drivers) gives me bad results
> with rather simple programs. I was using a simple, well known Runge-Kutta
> diff eq solver (rkf45.f at netlib) which works fine on my HP palmtop,
> various Suns, OSF/1 boxen and etc, but it won't work on Linux-AXP or
>
> I have often seen Fortran code that fails on f2c because of the
> missing SAVE's, i.e. the code assuming that subroutine local variables
> are preserved across different calls to this subroutine. This
> assumption is not only invalid as per Fortran 77, but is ...
f2c allocates all local variables static _unless_ you specifically tell
it with the -a switch to make local variables automatic. By default, f2c
plays it safe when it comes to SAVE - SAVE's are not required.
Ulf
--
Ulf Griesmann \\\ Tel.: (301) 975 3212 (x73220)
National Institute of \\\ Fax.: (301) 990 1350
Standards & Technology \\\ e-mail:
Atomic Physics Division, Bld. 221/A167 \\\ ulfg@aeldata.nist.gov
Gaithersburg MD 20899, U.S.A. \\\ ulfg@groundhog.phy.nist.gov
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Fortran compiler for Linux/Alpha
[not found] <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>
1996-10-16 21:50 ` Dwight Hogge
1996-10-16 22:56 ` Scott Locklin ESG
@ 1996-10-21 8:16 ` Nigel Sale
2 siblings, 0 replies; 13+ messages in thread
From: Nigel Sale @ 1996-10-21 8:16 UTC (permalink / raw)
In message <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>,
robertr@mail.linpro.no writes
>Hi, how is the performance of the gnu f2c and gnu g77 compiler using
>linux/alpha? I was under the impression that you don't get the same
>performance as from a linux/i386 solution. I would like to hear some
>advices from someone who has experience on those compilers.
>
>Thanks in advance.
>
>Robert R|dsten
>
>LinPro AS, Gaustadalleen 21
>Phone: +47-22958439 Fax: +47-22604427
>robertr@linpro.no
>
>
>--
>To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
>
My experience is that f2c is not the problem, its the C maths libraries
which really slow things down. (f2c was of the order of 5 times slower
than DEC UNIX Fortran on the same platform). Having said that, these
numbers were with Redhat 3.0.3. Someone said that the libraries are alot
better in glibc which i guess should be in Redhat 4.0.
--
Nigel Sale
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~1996-10-21 8:16 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199610162150.OAA23968@topanga.arete.com>
1996-10-17 12:15 ` Fortran compiler for Linux/Alpha Jim Nance
1996-10-17 17:41 ` Dwight Hogge
1996-10-17 18:39 ` Jim Nance
[not found] <199610180524.BAA08287@rrdjazz.nist.gov>
1996-10-18 12:47 ` Ulf Griesmann
1996-10-18 5:24 Przemek Klosowski
-- strict thread matches above, loose matches on Subject: below --
1996-10-17 18:25 Toon Moene
1996-10-17 16:59 Craig Burley
1996-10-17 15:44 Michael J. Donahue
1996-10-16 23:18 Michael J. Donahue
[not found] <Pine.LNX.3.91.961016103053.15626A-100000@zen.linpro.no>
1996-10-16 21:50 ` Dwight Hogge
1996-10-16 22:56 ` Scott Locklin ESG
1996-10-21 8:16 ` Nigel Sale
1996-10-16 8:45 Robert Rødsten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox