64-bit cleanlinest of gfortran
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Dec 15 04:11:00 GMT 2004
On Tue, Dec 14, 2004 at 04:00:20PM -0500, Scott Robert Ladd wrote:
> I'd sent this to you privately earlier, but intended it for the list in general.
>
> On Tue, 14 Dec 2004 10:52:39 -0800, Steve Kargl
> <sgk@troutmask.apl.washington.edu> wrote:
> > Scott Robert Ladd suggested that gcc is generating bad SSE/SSE2
> > code, and SSE/SSE2 is the default on amd64. I've tried setting
> > -mfpmath=387, but I still get several BUS ERROR and failed test.
>
> Actually, you might need to try -mno-sse or -mno-sse2 to stop all
> generation of those instructions. I know this solves problems with
> some of my code.
>
> An addendum: While my suggestion above does eliminate several LAPACK
> failures (as you mentioned in your response to me), it does not
> eliminate the BUS error problem. If you can get a small example and
> post it as a bug (or send it my way), I can take a look. Try -mno-mmx;
> I know AMD64 has some problems there, too.
>
> You might also use the unfairly-maligned -ffast-math; I've found it to
> remove some bugs because it changes the code generation logic.
>
> At the moment, I'm trying to solve the SSE/SSE2 bugs, and have made
> some headway.
>
You would my hero if you fix sse/sse2. :)
As far as cutting down the LAPACK test programs for the BUS
ERROR problem, that is a rather difficult task. The library
and program source code is fairly long. I may give it a
shot this weekend, but don't expect miracles.
--
Steve
More information about the Fortran
mailing list