This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gnu fortran compiler on 64 bit machines


On 10/2/07, zuheyr <alsalihi@vki.ac.be> wrote:
>
> Hello,
>
> I am using GNU fortran on 32/64 bit Fedora Core 6 Linux machines using
> Pentium IV and AMD
> Athlon processors. I use fortran 77 and fortran 90.
>
> I have seen serious differences between the gnu fortran compiled codes and
> Lahey fortran compiler
> code. I mean not in performance but also in execution as the results
> seriously differ.
> This is for 32 bit machines. The application is Navier-Stokes equation
> solver, so large programs.
>
> However, most notably there are also big differences between gnu fortran
> compiled codes on 32 and 64 bit machines.
> The 64 bit code does not at all run on what 32 bit gnu compiled code runs.
>
> In the compilations I used the simplest -O flag but there are differences
> even with -g flag.

Does your code compile and run properly if you compile with "-Wall
-pedantic-errors -C"? If not, fix your code.

Is your code numerically unstable? I.e. small differences in input
and/or differences in evaluation order/precision between different
compilers and different optimization levels, cause big differences in
output. If so, your results will be more or less random depending of
which compiler you use. Which is then the correct result? Well, noone
knows.

-- 
Janne Blomqvist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]