Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Switching from LInux to DU for Fortran
@ 1998-12-15  5:00 G. Hugh SONG
  1998-12-15  5:00 ` James D. Freels
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: G. Hugh SONG @ 1998-12-15  5:00 UTC (permalink / raw)


Hi,

From all the source I have obtained, the effect of
Digital Fortran for Alpha is not negligible.
However, I really don't want to go back to
Digital Unix although I like it better than
any other flavor of commercial Unixes.
(I was an Ultrix user before Linux).  The true reason for my
dislike of Digital Unix is because I have  already
pretty much standardized my environment around
Linux and I dont want to spend any more time
for administrative jobs involving a new Unix.

I know that there are a lot of people using
Digital Unix just because of FORTRAN.
I would like to hear what you did and what
you think after switching to Digital Unix from
Alpha/Linux.

I really grumble at Digital for not releasing
Fortran for Alpha/Linux.


Grrrr......

--
G. Hugh Song

PS: Please remove "Spamspoiler" when replying




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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
@ 1998-12-15  5:00 ` James D. Freels
  1998-12-15  5:00 ` Eric Christy
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 22+ messages in thread
From: James D. Freels @ 1998-12-15  5:00 UTC (permalink / raw)


I am using DU just because of the FORTRAN.  This is because I
have a production application (very large code written in FORTRAN) 
that runs significantly faster under DU/f77 than Linux/g77.

Furthermore, because this large legacy code also contains several
places that generate floating point errors (divide by zero, overflow,
etc.), DU/f77 is required to acieve the "correct" results.  Otherwise,
under LInux/g77 the code would die.

So, until the floating point performance of g77 is as good as f77, and
until the floating point error processing under g77 is as good as f77
(see fpe1, fpe2, etc. f77 options), I will be forced to use DU.

This is a shame because all other aspects of Linux for the Alpha are
in good shape as far as I am concerned.  I still use Linux on my Intel
machines 100% of the time.

"G. Hugh SONG" wrote:
> 
> Hi,
> 
> From all the source I have obtained, the effect of
> Digital Fortran for Alpha is not negligible.
> However, I really don't want to go back to
> Digital Unix although I like it better than
> any other flavor of commercial Unixes.
> (I was an Ultrix user before Linux).  The true reason for my
> dislike of Digital Unix is because I have  already
> pretty much standardized my environment around
> Linux and I dont want to spend any more time
> for administrative jobs involving a new Unix.
> 
> I know that there are a lot of people using
> Digital Unix just because of FORTRAN.
> I would like to hear what you did and what
> you think after switching to Digital Unix from
> Alpha/Linux.
> 
> I really grumble at Digital for not releasing
> Fortran for Alpha/Linux.
> 
> Grrrr......
> 
> --
> G. Hugh Song
> 
> PS: Please remove "Spamspoiler" when replying

-- 
/------------------------------------------------------------------\
|James D. Freels, P.E._i, Ph.D. |Phone:  (423)576-8645 |   | L | A |
|Oak Ridge National Laboratory  |FAX:    (423)574-9172 | H | I | L |
|Research Reactors Division     |work e-m: fea@ornl.gov| F | N | P |
|P. O. Box 2008                 |home e-m: fea@icx.net | I | U | H |
|Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
\------------------------------------------------------------------/



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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
  1998-12-15  5:00 ` James D. Freels
@ 1998-12-15  5:00 ` Eric Christy
  1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
  1998-12-16  5:00 ` Switching from LInux " Christian Hasse
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 22+ messages in thread
From: Eric Christy @ 1998-12-15  5:00 UTC (permalink / raw)


Hello

About 2 weeks ago, Jon 'maddog' Hall from Compaq/DEC
posted to this group asking if there was any interest
in a port of the DU compilers to Alpha/Linux.  I was
told that these would be offered for a reasonable
price if there was enough interest.

I would recommend that anyone interested send Jon an
email at hall@zk3.dec.com.

- Eric Christy


G. Hugh SONG wrote:

> Hi,
>
> From all the source I have obtained, the effect of
> Digital Fortran for Alpha is not negligible.
> However, I really don't want to go back to
> Digital Unix although I like it better than
> any other flavor of commercial Unixes.
> (I was an Ultrix user before Linux).  The true reason for my
> dislike of Digital Unix is because I have  already
> pretty much standardized my environment around
> Linux and I dont want to spend any more time
> for administrative jobs involving a new Unix.
>
> I know that there are a lot of people using
> Digital Unix just because of FORTRAN.
> I would like to hear what you did and what
> you think after switching to Digital Unix from
> Alpha/Linux.
>
> I really grumble at Digital for not releasing
> Fortran for Alpha/Linux.
>
> Grrrr......
>
> --
> G. Hugh Song
>
> PS: Please remove "Spamspoiler" when replying






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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
  1998-12-15  5:00 ` James D. Freels
  1998-12-15  5:00 ` Eric Christy
@ 1998-12-16  5:00 ` Christian Hasse
  1998-12-18  5:00   ` Stephen L. Scott
  1998-12-17  5:00 ` kasmjs
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 22+ messages in thread
From: Christian Hasse @ 1998-12-16  5:00 UTC (permalink / raw)


> I know that there are a lot of people using
> Digital Unix just because of FORTRAN.
> I would like to hear what you did and what
> you think after switching to Digital Unix from
> Alpha/Linux.
> 

Well, we started out with Linux but it was not
working too well with g77 (egcs1.1b and fast
math libs). I would love to go back to Linux
but all our fortran codes are running 
significantly faster under DU (up to 100%). 
In addition some of our codes use common
blocks a lot which makes debugging with g77
a pain. I really wait for Compaq/Digital to
port their compilers so I can switch back
to Linux (yes, I wrote maddog)
. 
By the way, our codes are not that 
exotic. E.g. one of them is actually 
KIVA 3 which is a CFD solver written
by Los Alamos National Labs.

Christian



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

* Re: Switching from LInux to DU for Fortran
       [not found] ` <36768633.88E7A7A9@rhea.umd.edu>
@ 1998-12-16  5:00   ` G. Hugh SONG
  0 siblings, 0 replies; 22+ messages in thread
From: G. Hugh SONG @ 1998-12-16  5:00 UTC (permalink / raw)


Jeffrey J. Potoff wrote:

> "G. Hugh SONG" wrote:
> >
> > I have posted the following article in comp.os.linux.alpha.
> > I forgot to cross-posting.  So please read the following.
> > If you have something to contribute-, please go to
> > comp.sys.linux.alpha and respond in that news group.
> >
> > Thank you.
> >
> > =========================================
> > Hi,
> >
> > From all the source I have obtained, the effect of
> > Digital Fortran for Alpha is not negligible.
> > However, I really don't want to go back to
> > Digital Unix although I like it better than
> > any other flavor of commercial Unixes.
> > (I was an Ultrix user before Linux).  The true reason for my
> > dislike of Digital Unix is because I have  already
> > pretty much standardized my environment around
> > Linux and I dont want to spend any more time
> > for administrative jobs involving a new Unix.
> >
> > I know that there are a lot of people using
> > Digital Unix just because of FORTRAN.
> > I would like to hear what you did and what
> > you think after switching to Digital Unix from
> > Alpha/Linux.
>
> We run Digital UNIX 4.0d here mainly because of the Fortran
> compiler.  There really isn't a good Fortran 90 compiler
> for Alpha/Linux yet.  We also ran some tests of g77 vs Digital
> Fortran and the DEC compiler was on average 20-30% faster than
> g77.
>
> Jeff

Was it f77 or f90?

It seems that you tuned your g77 with all the enhancement
such as libffm and the new hand-tuned BLAS.  After all those
tuning and if the difference is just that much, I will stick with
Alpha/Linux/g77.

However,  according to the BREM benchmark
( http://studbolt.physast.uga.edu/templon/fortran/silly_res_old.html )
even the two Digital compilers (f77 and f90) are quite different (2x) in

performance.  It is very hard to understand why there
exists such a large difference.

Regards,

--
G. Hugh Song

PS: Please remove "Spamspoiler" when replying




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

* Re: Switching from Linux to DU for Fortran
  1998-12-15  5:00 ` Eric Christy
@ 1998-12-17  5:00   ` G. Hugh SONG
  1998-12-17  5:00     ` Robert Harley
                       ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: G. Hugh SONG @ 1998-12-17  5:00 UTC (permalink / raw)


Eric Christy wrote:

> Hello
>
> About 2 weeks ago, Jon 'maddog' Hall from Compaq/DEC
> posted to this group asking if there was any interest
> in a port of the DU compilers to Alpha/Linux.  I was
> told that these would be offered for a reasonable
> price if there was enough interest.
>
> I would recommend that anyone interested send Jon an
> email at hall@zk3.dec.com.
>
> - Eric Christy
>

Does Jon Hall physically exist?  How come anyone put
"maddog" as his middle name?  I have never seen his
article in this newsgroup.

Aside from curiosity, DEC has been known for its
poor management.  I assume that they partially
replaced the management after the merger.
It appears that they still tight-gripping the decreasing
market of DU.  Even the number of Solaris users
is decreasing.  But we all know that the number of
Alpha/Linux users is increasing.  DECpaq don't seem to
realize the power of the installed base of CPUs.  The
only reason people using Alpha/Linux over P2/Linux
is because  of Alpha's superior FPU performance.
There is virtually no difference between P2-400MHz
21164-600MHz in terms of integer performance.

Poor DEC.

--
G. Hugh Song

PS: Please remove "Spamspoiler" when replying




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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
  1998-12-17  5:00     ` Robert Harley
@ 1998-12-17  5:00     ` Wai-Sun Chia
  1998-12-17  5:00     ` Mike Iglesias
  1998-12-19  5:00     ` Toon Moene
  3 siblings, 0 replies; 22+ messages in thread
From: Wai-Sun Chia @ 1998-12-17  5:00 UTC (permalink / raw)


"G. Hugh SONG" wrote:
<SNIP>
> 
> Does Jon Hall physically exist?  How come anyone put
> "maddog" as his middle name?  I have never seen his
> article in this newsgroup.
> 
Errr... I think so that Jon Hall actually _EXISTS_ ! ;-)
This is his sig below...

*****************************************************************************
Jon "maddog" Hall                     Internet: maddog@zk3.dec.com
Senior Leader, UNIX Software Group    Executive Director, Linux(R)
Intern'l

Compaq Computer Corporation           Linux International
Mailstop ZK03-2/U15                   80 Amherst St.
110 Spit Brook Rd.                    Amherst, N.H. 03031-3032 U.S.A.
Nashua, N.H. 03062-2698 U.S.A.

WWW: http://www.compaq.com            WWW: http://www.li.org
Voice: +1.603.884.1341                Voice: +1.603.672.4557
FAX: +1.603.884.6424                  Board Member: Uniforum Association
Office: ZK03-2/V15                    Board Member: USENIX Association
*****************************************************************************

But seriously folks, if you and everyone else want to have DEC
C/C++/Fortran on Alpha Linux, please _DO_ send Jon an email stating just
that, and don't forget to mention how much are you willing to _PAY_ for
such a product.

Jon is currently compiling a business case for justification to the
product group. Please help him to help ourselves.

p.s. don't send email _UNLESS_ you're willing to pay for such a product.

<SNIP>
-- 
Wai-Sun Chia



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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
                   ` (2 preceding siblings ...)
  1998-12-16  5:00 ` Switching from LInux " Christian Hasse
@ 1998-12-17  5:00 ` kasmjs
  1998-12-17  5:00   ` G. Hugh SONG
  1998-12-17  5:00 ` Jack W. Crenshaw
  1998-12-18  5:00 ` rsimpson
  5 siblings, 1 reply; 22+ messages in thread
From: kasmjs @ 1998-12-17  5:00 UTC (permalink / raw)


G. Hugh SONG wrote:

> From all the source I have obtained, the effect of
> Digital Fortran for Alpha is not negligible.
 [snip]

Has anyone tried the compilers from Microway?  I was assuming 
that their compilers should be nearly as fast as DEC's.

Ken Snyder



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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
                   ` (3 preceding siblings ...)
  1998-12-17  5:00 ` kasmjs
@ 1998-12-17  5:00 ` Jack W. Crenshaw
  1998-12-17  5:00   ` dontspam_esci
  1998-12-18  5:00 ` rsimpson
  5 siblings, 1 reply; 22+ messages in thread
From: Jack W. Crenshaw @ 1998-12-17  5:00 UTC (permalink / raw)


G. Hugh SONG wrote:
> 
> Hi,
> 
> From all the source I have obtained, the effect of
> Digital Fortran for Alpha is not negligible.
> However, I really don't want to go back to
> Digital Unix although I like it better than
> any other flavor of commercial Unixes.
> (I was an Ultrix user before Linux).  The true reason for my
> dislike of Digital Unix is because I have  already
> pretty much standardized my environment around
> Linux and I dont want to spend any more time
> for administrative jobs involving a new Unix.
> 
> I know that there are a lot of people using
> Digital Unix just because of FORTRAN.
> I would like to hear what you did and what
> you think after switching to Digital Unix from
> Alpha/Linux.
> 
> I really grumble at Digital for not releasing
> Fortran for Alpha/Linux.
> 

Doesn't Microway sell a Fortran for Alpha/Linux?  I thought surely they
would, since they sell both Fortran compilers and Alpha/Linux boxes.

Jack



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

* Re: Switching from LInux to DU for Fortran
  1998-12-17  5:00 ` kasmjs
@ 1998-12-17  5:00   ` G. Hugh SONG
  0 siblings, 0 replies; 22+ messages in thread
From: G. Hugh SONG @ 1998-12-17  5:00 UTC (permalink / raw)


kasmjs@erols.com wrote:

> G. Hugh SONG wrote:
>
> > From all the source I have obtained, the effect of
> > Digital Fortran for Alpha is not negligible.
>  [snip]
>
> Has anyone tried the compilers from Microway?  I was assuming
> that their compilers should be nearly as fast as DEC's.
>
> Ken Snyder

I don't want to be negative on one particular
product.
Unfortunately, all the information I obtained about
existing Fortran compiler for Alpha is sufficiently negative.

Regards,
--
G. Hugh Song

PS: Please remove "Spamspoiler" when replying




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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
@ 1998-12-17  5:00     ` Robert Harley
  1998-12-17  5:00       ` Andrei A. Dergatchev
  1998-12-17  5:00     ` Wai-Sun Chia
                       ` (2 subsequent siblings)
  3 siblings, 1 reply; 22+ messages in thread
From: Robert Harley @ 1998-12-17  5:00 UTC (permalink / raw)



"G. Hugh SONG" <ghsong@\"Spamspoiler\"kjist.ac.kr> writes:
> [...]  The
> only reason people using Alpha/Linux over P2/Linux
> is because  of Alpha's superior FPU performance.
> There is virtually no difference between P2-400MHz
> 21164-600MHz in terms of integer performance.

For small integers i.e., <= 32 bits yes.  Try anything larger and the
Alpha will eat the P2 alive.  Not relevant to everybody but it sure is to me...

Bye,
  Rob. 



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

* Re: Switching from LInux to DU for Fortran
  1998-12-17  5:00 ` Jack W. Crenshaw
@ 1998-12-17  5:00   ` dontspam_esci
  1998-12-19  5:00     ` Toon Moene
  0 siblings, 1 reply; 22+ messages in thread
From: dontspam_esci @ 1998-12-17  5:00 UTC (permalink / raw)


Jack W. Crenshaw <jcrens@magicnet.net> wrote:

[snip]

> Doesn't Microway sell a Fortran for Alpha/Linux?  I thought surely they
> would, since they sell both Fortran compilers and Alpha/Linux boxes.

> Jack

I got the Microway compiler and eventually returned it.  It does a fair
job on some code and a poor job on others.  Unfortunately, the simple 
tests were quick and the real problem was slow (5x :-(

Interestingly in some cases g77 was quicker though for the real problem
g77 was a factor of 10-15 slower than DEC FORTRAN.

They don't have a debugger for NDP FORTRAN, so you have to use gdb
which is NOT easy w/ FORTRAN.

Writing a really good compiler is a lot of work.  DEC invested a lot
of money in the GEM compilers.  I find it amazing that people expect
g77 to come close.  I'm thrilled g77 exists and works at all. It's
really a good compiler.  It's just not highly optimized for the
alpha.  If speed matters there really is only one answer right now.
Hopefully, Compaq will recognize that they are in a wonderful position
to catch the Linux wave w/ high end clusters by selling a Linux port
of their development tools.

BTW The Microway Alphas are very nicely built.  Best machine I've
seen from someone other than DEC-SGI-IBM-Sun.  Excellent cabinet,
good peripherals and meticulous assembly. Cabling niely laid out
and tied.  Truly a quality product.

Have fun!

Reg Beardsley
rhb @ acm.org




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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00     ` Robert Harley
@ 1998-12-17  5:00       ` Andrei A. Dergatchev
  1998-12-17  5:00         ` Robert Harley
  0 siblings, 1 reply; 22+ messages in thread
From: Andrei A. Dergatchev @ 1998-12-17  5:00 UTC (permalink / raw)


Hi,

I am purchasing Alpha (RH5.1) with exactly the same purpose -
extensive long int hadling. Can you please provide some pointers to
relevant info in the Net/elsewhere ? I have relatively good experiense
in PC/DOS assembler programming but my knowledge of assemlers
available for Alpha's is rather vague.

Andrei

On 17 Dec 1998 11:41:00 +0100, Robert Harley <harley@corton.inria.fr>
wrote:

>
>For small integers i.e., <= 32 bits yes.  Try anything larger and the
>Alpha will eat the P2 alive.  Not relevant to everybody but it sure is to me...
>
>Bye,
>  Rob. 




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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00       ` Andrei A. Dergatchev
@ 1998-12-17  5:00         ` Robert Harley
  0 siblings, 0 replies; 22+ messages in thread
From: Robert Harley @ 1998-12-17  5:00 UTC (permalink / raw)



A.Dergatchev@tn.utwente.nl (Andrei A. Dergatchev) writes:
> I am purchasing Alpha (RH5.1) with exactly the same purpose -
> extensive long int hadling. Can you please provide some pointers to
> relevant info in the Net/elsewhere ?  [...]

I don't know how big you mean... if they are at least a few dozen
digits, then you could take a look at GMP:

  http://www.matematik.su.se/~tege/gmp/


It contains optimised low-level arithmetic routines for several chips
which make interesting reading.  Its author, Torbjo"rn Granlund,
appears to agree about the speed of Alpha.  See the speed charts at:

  http://www.matematik.su.se/~tege/gmp/gmp-speed.html


Typically, mpn_addmul is the critical function.  Torbjo"rn's code for
it was 5 times faster on a 500 MHz Alpha than a 200 MHz Pentium Pro.
This was measured a while ago so a more up-to-date comparison would be
something like a factor of three between a 600 MHz Alpha and a 400 MHz P II.
I'm just waiting to see his numbers on 21264 chips!

Rob.



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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
  1998-12-17  5:00     ` Robert Harley
  1998-12-17  5:00     ` Wai-Sun Chia
@ 1998-12-17  5:00     ` Mike Iglesias
  1998-12-19  5:00     ` Toon Moene
  3 siblings, 0 replies; 22+ messages in thread
From: Mike Iglesias @ 1998-12-17  5:00 UTC (permalink / raw)


In article <759pfb$i5$1@news.kjist.ac.kr>,
G. Hugh SONG <ghsong@\"Spamspoiler\"kjist.ac.kr> wrote:
>Does Jon Hall physically exist?  How come anyone put
>"maddog" as his middle name?  I have never seen his
>article in this newsgroup.

Yes, he really exists.


-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       949-824-6926
Office of Academic Computing         FAX:         949-824-2069



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

* Re: Switching from LInux to DU for Fortran
  1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
                   ` (4 preceding siblings ...)
  1998-12-17  5:00 ` Jack W. Crenshaw
@ 1998-12-18  5:00 ` rsimpson
  1998-12-18  5:00   ` lih-sin the
  5 siblings, 1 reply; 22+ messages in thread
From: rsimpson @ 1998-12-18  5:00 UTC (permalink / raw)


G. Hugh SONG <ghsong@\"Spamspoiler\"kjist.ac.kr> wrote:

: I know that there are a lot of people using
: Digital Unix just because of FORTRAN.
: I would like to hear what you did and what
: you think after switching to Digital Unix from
: Alpha/Linux.

Why not compile your code statically under DU and then run it under Linux? 
It works fine for me.

For those interested, my particular application ran 20% faster using DU
(possibly not the latest version) than using egcs 1.1b and libffm.

-- 
----------------------------------------------------------------------------

Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392976
rsimpson@ewrcsdra.demon.co.uk



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

* Re: Switching from LInux to DU for Fortran
  1998-12-18  5:00 ` rsimpson
@ 1998-12-18  5:00   ` lih-sin the
  0 siblings, 0 replies; 22+ messages in thread
From: lih-sin the @ 1998-12-18  5:00 UTC (permalink / raw)



  could someone tell me how (the procedure, what commands to use) a code 
is statically compiled in DU can be run under Linux?

thanks,
lihsin

rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk writes:

>G. Hugh SONG <ghsong@\"Spamspoiler\"kjist.ac.kr> wrote:

>: I know that there are a lot of people using
>: Digital Unix just because of FORTRAN.
>: I would like to hear what you did and what
>: you think after switching to Digital Unix from
>: Alpha/Linux.

>Why not compile your code statically under DU and then run it under Linux? 
>It works fine for me.

>For those interested, my particular application ran 20% faster using DU
>(possibly not the latest version) than using egcs 1.1b and libffm.

>-- 
>----------------------------------------------------------------------------

>Richard Simpson
>Farnborough, Hants, Uk                 Fax: 01252 392976
>rsimpson@ewrcsdra.demon.co.uk



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

* Re: Switching from LInux to DU for Fortran
  1998-12-16  5:00 ` Switching from LInux " Christian Hasse
@ 1998-12-18  5:00   ` Stephen L. Scott
  0 siblings, 0 replies; 22+ messages in thread
From: Stephen L. Scott @ 1998-12-18  5:00 UTC (permalink / raw)


>> I know that there are a lot of people using
>> Digital Unix just because of FORTRAN.
>> I would like to hear what you did and what
>> you think after switching to Digital Unix from
>> Alpha/Linux.


Why not give the PGI (Portland Group) compilers a try.

stephen.






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

* Re: Switching from Linux to DU for Fortran
  1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
                       ` (2 preceding siblings ...)
  1998-12-17  5:00     ` Mike Iglesias
@ 1998-12-19  5:00     ` Toon Moene
  3 siblings, 0 replies; 22+ messages in thread
From: Toon Moene @ 1998-12-19  5:00 UTC (permalink / raw)


G. Hugh SONG wrote:

> Eric Christy wrote:

> > About 2 weeks ago, Jon 'maddog' Hall from Compaq/DEC
> > posted to this group asking if there was any interest
> > in a port of the DU compilers to Alpha/Linux.  I was
> > told that these would be offered for a reasonable
> > price if there was enough interest.

> Does Jon Hall physically exist?  How come anyone put
> "maddog" as his middle name?  I have never seen his
> article in this newsgroup.

This was bound to happen - someone who looks so much like Santa Claus
and has excellent connections to Finland, must be a mythological figure
:-)

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com



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

* Re: Switching from LInux to DU for Fortran
  1998-12-17  5:00   ` dontspam_esci
@ 1998-12-19  5:00     ` Toon Moene
  1998-12-20  5:00       ` dontspam_esci
  0 siblings, 1 reply; 22+ messages in thread
From: Toon Moene @ 1998-12-19  5:00 UTC (permalink / raw)


dontspam_esci@fastlane.net wrote:

> Jack W. Crenshaw <jcrens@magicnet.net> wrote:

> > Doesn't Microway sell a Fortran for Alpha/Linux?  I thought surely they
> > would, since they sell both Fortran compilers and Alpha/Linux boxes.

> I got the Microway compiler and eventually returned it.  It does a fair
> job on some code and a poor job on others.  Unfortunately, the simple
> tests were quick and the real problem was slow (5x :-(

> Interestingly in some cases g77 was quicker though for the real problem
> g77 was a factor of 10-15 slower than DEC FORTRAN.

This is rather exceptional.  On the SPECfp95 suite, on an EB164 based
machine egcs-1.[01] gets about 60 % of the performance of the Digital
Fortran compiled code.

A factor of 3 would already be exceptional, but 10-15 times slower means
something else is wrong (probably not even related to the compiler).

Is the part of the code where most of the CPU time is spent easily
identifiable ?  In that case it would be possible to reason about the
strange slow-down.

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com



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

* Re: Switching from LInux to DU for Fortran
  1998-12-19  5:00     ` Toon Moene
@ 1998-12-20  5:00       ` dontspam_esci
  1998-12-20  5:00         ` Toon Moene
  0 siblings, 1 reply; 22+ messages in thread
From: dontspam_esci @ 1998-12-20  5:00 UTC (permalink / raw)


Toon Moene <toon@moene.indiv.nluug.nl> wrote:

[snip]

> This is rather exceptional.  On the SPECfp95 suite, on an EB164 based
> machine egcs-1.[01] gets about 60 % of the performance of the Digital
> Fortran compiled code.

> A factor of 3 would already be exceptional, but 10-15 times slower means
> something else is wrong (probably not even related to the compiler).

> Is the part of the code where most of the CPU time is spent easily
> identifiable ?  In that case it would be possible to reason about the
> strange slow-down.

The code in question has 2 sqrts and 4 other divides in a tight loop
w/ 7 multiplies and 7 adds.  There are 5 operands per iteration.
It's not surprising that compilers have trouble w/ it.  The amazing
part is how well DEC FORTRAN handles it.

Because of the circumstances under which I was working. I was unable 
to properly study the differences in code generation.  I made some
attempt to do so, but lost some files moving them between machines
and was not able to recover.  Once the DU SDK arrives I will be
able to conduct more thorough tests and will provide more details.

Note this was not production code, but a loop extracted from a
production code, so there really wasn't anything else going on.

While I did a fairly lengthy set of tests of NDP FORTRAN flag
combinations, I did not do this w/ g77.  I suspect that there 
are better choices (I used -O5 -fast).

I will certainly look into the difference pretty carefully
as soon as time permits.  I quite agree that it is rather
extreme.

Reg Beardsley
rhb @ acm.org




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

* Re: Switching from LInux to DU for Fortran
  1998-12-20  5:00       ` dontspam_esci
@ 1998-12-20  5:00         ` Toon Moene
  0 siblings, 0 replies; 22+ messages in thread
From: Toon Moene @ 1998-12-20  5:00 UTC (permalink / raw)


dontspam_esci@fastlane.net wrote:

> Toon Moene <toon@moene.indiv.nluug.nl> wrote:

[ ... Slowdown of a factor of 10-15 between Digital
      Fortran and g77 is rather extreme ... ]

> The code in question has 2 sqrts and 4 other divides in a tight loop
> w/ 7 multiplies and 7 adds.  There are 5 operands per iteration.
> It's not surprising that compilers have trouble w/ it.  The amazing
> part is how well DEC FORTRAN handles it.

Ah, that explains most of it:  SQRT.  The Alpha doesn't have a SQRT
instruction (until the 21264) so the compiler has to code a function
call.  Digital Fortran is known to optimise loops with SQRT's by
unrolling them until they contain a multiple-of-4 number of SQRTs and
then calling a special run-time library to compute the 4 SQRTs "at
once".  Furthermore, the standard SQRT in glibc is known to be rather
slow - there have been recent efforts to recode the math routines that
showed spectacular improvements in this area (Perhaps one of the authors
can chime in ?).

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com



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

end of thread, other threads:[~1998-12-20  5:00 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-15  5:00 Switching from LInux to DU for Fortran G. Hugh SONG
1998-12-15  5:00 ` James D. Freels
1998-12-15  5:00 ` Eric Christy
1998-12-17  5:00   ` Switching from Linux " G. Hugh SONG
1998-12-17  5:00     ` Robert Harley
1998-12-17  5:00       ` Andrei A. Dergatchev
1998-12-17  5:00         ` Robert Harley
1998-12-17  5:00     ` Wai-Sun Chia
1998-12-17  5:00     ` Mike Iglesias
1998-12-19  5:00     ` Toon Moene
1998-12-16  5:00 ` Switching from LInux " Christian Hasse
1998-12-18  5:00   ` Stephen L. Scott
1998-12-17  5:00 ` kasmjs
1998-12-17  5:00   ` G. Hugh SONG
1998-12-17  5:00 ` Jack W. Crenshaw
1998-12-17  5:00   ` dontspam_esci
1998-12-19  5:00     ` Toon Moene
1998-12-20  5:00       ` dontspam_esci
1998-12-20  5:00         ` Toon Moene
1998-12-18  5:00 ` rsimpson
1998-12-18  5:00   ` lih-sin the
     [not found] <7552ja$gg$2@news.kjist.ac.kr>
     [not found] ` <36768633.88E7A7A9@rhea.umd.edu>
1998-12-16  5:00   ` G. Hugh SONG

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