Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Fortran vs C Linpack speeds on Alpha 21164
@ 1996-04-19  1:49 Harold H. Youngren
  0 siblings, 0 replies; only message in thread
From: Harold H. Youngren @ 1996-04-19  1:49 UTC (permalink / raw)


I picked up the clinpack stuff from the ftp site cosc1 mentioned in the  
previous post and ran it on the 21164 with the DEC C compiler. 

The best set of compiler flags I could find (-O4 -float -tune ev5 -assume  
noaccuracy_sensitive -ifo -migrate -DFAST_MATH -fp_reorder) give results  
showing speeds of 40MFLOPS/46MFLOPS for the two matrix alignments from the  
clinpack (odd or even doubleword) with unrolled loops (-DUNROLL).  The numbers  
for loops without unrolling are 37MFLOPS/38MFLOPS. 

The same routine in Fortran (Dongarra's standard fortran linpack) using OSF f77  
with the best set of compiler flags gives 99MFLOPS/102MFLOPS.  

These results were done on a 300mhz 21164 running DEC OSF1 v3.2 (I will be  
putting Linux on this box soon...).  

Note that the fortran version linpack speeds are way up there compared to C,  
more than double, not just a 10% difference...

Note that I did not change the C linpack routine to reorder the arrays, the  
code treats all arrays passed in to the matrix functions as pointers with  
offsets used to access the matrix elements.  Does anyone here know the details  
of declaring a dynamically dimensioned array in C?  This might allow the  
compiler to speed up the loops....

Hal Y.

--

*************************************************************
* 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] only message in thread

only message in thread, other threads:[~1996-04-19  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-19  1:49 Fortran vs C Linpack speeds on Alpha 21164 Harold H. Youngren

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