This is the mail archive of the egcs-bugs@egcs.cygnus.com mailing list for the EGCS project.


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

another egcs-g77 + LAPACK inconsistency?



I'm using egcs-1.1.2 on linux and have just noticed
that LAPACK function dlamch_('P') which is supposed
to return machine precision returns different values
depending on whether it's compiled with -O0 or 
-O[123] flag(s).

When dlamch.f is g77 compiled with -O0 it returns: 2.220446E-16

With -O3 it returns: 4.440892E-16 

These numbers are actually output by my g++ driver
program which links to dlamch.o.

This (problem?) seems to only happen on linux - I tried this
on HPUX 10.01 and 10.20 and in that case 2.220446E-16
is always returned. I also compiled this on solaris 2.5.1
with Sun's fortran compiler and I again got 2.220446E-16
(optimized or not). I don't know whether this has
anything to do with the other g77 vs LAPACK issues that have
been discussed recently, but figured others may be
interested to know (since this function is called by
many other higher level functions).

BTW, this happens with both LAPACK 2.0 and LAPACK 3.0.

Finally, my linux info:
% uname -a
Linux tgmontreal 2.2.5-15 #1 Mon May 3 15:39:19 EDT 1999 i686 unknown

Best regards,
Tomislav Goles

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