From: robk@nntp.ucs.ubc.ca (Rob Komar)
Subject: Re: Mysterious data corruption in Fortran with -automatic
Date: 1998/06/06 [thread overview]
Message-ID: <6la9hl$bfj$3@nntp.ucs.ubc.ca> (raw)
In-Reply-To: 35783CAA.C0907F50@rhea.umd.edu
Jeffrey J. Potoff (jpotoff@rhea.umd.edu) wrote:
:
: I write code in Fortran 90 for the Monte Carlo simulation of a
: variety of fluids. Most of my work is in the critical behavior
: of mixtures. The codes are not terribly complex (at least not to
: me), but can be quite long. They all compile with whatever
: optimization I choose and give me the exact same answers regardless
: of optimization level. All the codes I have written have always
: done that. If they didn't, I knew there was a bug (almost always
: in memory allocation) in the code.
Hi,
if you run your code on x86 machines and always get the same
answer regardless of optimization level, then I'd like to hear
from you on how you accomplish that. I work on particle physics
Monte Carlo simulations on x86 machines, and have a devil of a
time getting the results to be the same at different levels of
optimization. The transcendental functions built into the
387 FPU always return the result in double extended precision,
and I find that I can get different results depending on whether
the compiler stores the result in a memory location first,
or uses it directly in a calculation. Which it chooses to do
can depend on the level of optimization. If you know how to get
around this, please E-mail me at the address below.
Cheers,
Robert Komar Physics Dept., Univ. of British Columbia, Canada
(stationed at the Sudbury Neutrino Observatory)
My mail address can be got from the following Unix command:
echo 'robkviaphysicsZubcZca' | tr 'Z' '.' | sed 's/via/@/'
next prev parent reply other threads:[~1998-06-06 4:00 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-04 4:00 Mysterious data corruption in Fortran with -automatic Keith Refson - real email address in signature
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-04 4:00 ` Jeffrey J. Potoff
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` William Clodius
1998-06-05 4:00 ` Thorsten Ohl
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` William Clodius
1998-06-05 4:00 ` Ian Pattie
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-06 4:00 ` Rob Komar [this message]
1998-06-05 4:00 ` Ian Chivers
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Catherine Rees Lay
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Robert O'Dowd
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Stuart Brook
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Keith Refson - real email address in signature
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Robert O'Dowd
1998-06-05 4:00 ` John Appleyard
1998-06-05 4:00 ` Keith Refson - real email address in signature
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Jeffrey J. Potoff
1998-06-05 4:00 ` Harald Anlauf
1998-06-05 4:00 ` Kevin G. Rhoads
1998-06-08 4:00 ` Paul Winalski
1998-06-04 4:00 ` Stuart Brook
1998-06-04 4:00 ` Kevin G. Rhoads
1998-06-05 4:00 ` Stuart Brook
1998-06-05 4:00 ` Toon Moene
1998-06-04 4:00 ` Thorsten Ohl
1998-06-06 4:00 ` SUMMARY: Code errors which can masquerade as compiler bugs " Kevin G. Rhoads
1998-06-11 4:00 ` Ron Sverdlove x2517
1998-06-08 4:00 ` Steve Lionel
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