Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Fortran for Linux-Alpha
@ 1996-04-16  3:19 Harold H. Youngren
  1996-04-16  3:51 ` yxc02740
  0 siblings, 1 reply; 2+ messages in thread
From: Harold H. Youngren @ 1996-04-16  3:19 UTC (permalink / raw)


Hi,

I noticed a thread here about Fortran on Linux-Alpha.

This is a concern of mine as I use Fortran for fluid dynamics codes. Most of  
these are still in Fortran.  My experience is that a good f77 compiler runs  
numeric codes much faster than the same code written in C.  On a 300mhz 21164  
running OSF with the DEC C and f77 compilers the difference is even higher, a  
Fortran matrix solver I have runs at about 105 Mflops or so with best  
optimization, the same thing coded in C runs at 45 Mflops with best  
optimization.  This expands on some of the comments that were made on relative  
speed of different compiled languages.  My understanding of why echoes the  
earlier comments about optimizing memory fetches for Fortran, where the  
structure of the arrays can be used in code optimization.  

RE f77 compilers for Linux-Alpha:

I have been dealing with Microway, in Kingston, MA, on their Alpha Fortran  
compiler for Linux.  I bought a copy of the early version that runs under Linux  
(on the Alpha) and produces about 60 Mflops with the same Fortran matrix solver  
that I mentioned above.  Microway was not happy with the optimizer and has been  
making some changes to speed up its code.  I have not tested the newest  
changes.   Note that this is a full-featured f77 compiler that runs native  
under Linux, not free, but it works and is pretty damn fast now, maybe even  
faster later.  Note also that Microway has optimizing C and C++ compilers as  
well, although I have no experience with them and don't know the status of any  
ports to Linux-Alpha.  It would be interesting to use a good optimizing  
compiler (rather than the currently not-so-optimizing gcc) to compile the  
kernel and system...

The contact at Microway is Terri Klaila at 508-746-7341.  

Hal Youngren

--

*************************************************************
* Harold Youngren   ----> Internet: guppy@maine.com         *
* 129 Pitt St,                  or: guppy@netcom.com        *
* Portland, ME  04103     AeroCraft Consulting              *
* Home: (207)871-0552     Aeronautical Consulting, Analysis,*
* Fax:  (207)871-1034     Design, CFD software              *
*************************************************************

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fortran for Linux-Alpha
  1996-04-16  3:19 Fortran for Linux-Alpha Harold H. Youngren
@ 1996-04-16  3:51 ` yxc02740
  0 siblings, 0 replies; 2+ messages in thread
From: yxc02740 @ 1996-04-16  3:51 UTC (permalink / raw)


> Hi,
> 
> I noticed a thread here about Fortran on Linux-Alpha.
> 
> This is a concern of mine as I use Fortran for fluid dynamics codes. Most of  
> these are still in Fortran.  My experience is that a good f77 compiler runs  
>numeric codes much faster than the same code written in C.  On a 300mhz 21164  
>running OSF with the DEC C and f77 compilers the difference is even higher, a  
> Fortran matrix solver I have runs at about 105 Mflops or so with best  
> optimization, the same thing coded in C runs at 45 Mflops with best  
>optimization. This expands on some of the comments that were made on relative  
>speed of different compiled languages.  My understanding of why echoes the  
> earlier comments about optimizing memory fetches for Fortran, where the  
> structure of the arrays can be used in code optimization.  
C codes shd not be that slow, I guess your C codes has some problems. From
clinpack(it is a linear algebra benchmark), a 200mhz 21064 chip can get
about 41Mflops. I guess your matrix solver may use similar algorithm so shd
have similar speed. It is not likely that a 300mhz 21164 is only 10% faster
than a 200mhz 21064.
In my personal experience, f77 is just marginally faster than C, less than
10% in all programs I have tried to code in both fortran and C.
> 
> The contact at Microway is Terri Klaila at 508-746-7341.  
> 
> Hal Youngren
> --

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-04-16  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-16  3:19 Fortran for Linux-Alpha Harold H. Youngren
1996-04-16  3:51 ` yxc02740

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox