From: Jochen Kuepper <jochen@uni-duesseldorf.de>
To: Lorenzo Bernardi <lwb@neko.issp.u-tokyo.ac.jp>,
Lorenzo Bernardi <lwb@neko.issp.u-tokyo.ac.jp>,
axp-list@redhat.com
Subject: Re: Numerical simulations on alphalinux: C or fortran?
Date: Thu, 4 Mar 1999 14:00:29 +0100 [thread overview]
Message-ID: <99030414103501.00433@bacchus.pc1.uni-duesseldorf.de> (raw)
In-Reply-To: Pine.LNX.3.96.990304154304.3250A-100000@neko.issp.u-tokyo.ac.jp
On Don, 04 Mär 1999 Lorenzo Bernardi wrote:
> I bought a alphalinux workstation to make numerical simulations. The
>kind of numerical simulation I'm doing is monte carlo and it evolves
>mainly calculating EXP and COS with real*8. The language I use is
>fortran77. For now on the alphalinux I compile on a DU workstation and use
>the compiled binaries.
>
> My question is will I gain in term of speed to transfer my code from
>fortran to C? I will then use egcc compiler plus the new libcpml.
>It seems that C compiler are evolving faster thna fortran compiler and
>thus they can be better for fp operation than fortran compiler. Or maybe
>the enhancement are different.
>
>Any experience with simulation on alpha machine is greatly appreciated.
>(Other compiler brand or optimization tricks and so on)
Well, in my experience C looses against FORTRAN most of the time, but they are
close, usually. If you have some complex stuff, you can write nice and fast C++
programs, though, esp. if you use inline functions efficiently. Often these are
faster than corresponding FORTRAN, since nowadays people usually don't write
spaghetti code any more - even if they use FORTRAN77 :-)
But in the end, I would say, speed mostly depends on good algorithms and
efficient implemetations, not on the programming language.
Greetings,
Jochen
-----------------------------------------------------------------------
Jochen Küpper
Heinrich-Heine-Universität Düsseldorf jochen@uni-duesseldorf.de
Institut für Physikalische Chemie I
Universitätsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681
40225 Düsseldorf fax ++49-211-8115195
Germany http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------
next prev parent reply other threads:[~1999-03-04 13:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-04 11:05 Numerical simulations on alphalinux: C or fortran? Lorenzo Bernardi
1999-03-04 11:30 ` Andrei A. Dergatchev
1999-03-04 18:55 ` Chris Albertson
1999-03-04 13:00 ` Jochen Kuepper [this message]
1999-03-04 13:34 ` Helge Kreutzmann
1999-03-04 18:54 ` Jochen Kuepper
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox