Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Jeffrey Potoff <jpotoff@latoso.cheme.cornell.edu>
Subject: Re: Precision on an Alpha
Date: 1997/04/24	[thread overview]
Message-ID: <335FE9E7.41C6@latoso.cheme.cornell.edu> (raw)
In-Reply-To: MPG.dc94838f95f8d4a989680@news


Marcus A. Cuda wrote:
> 
> Hi,
> We are running into a problem on a DEC AlphaStation 4/233.
> When running a routine in an econometrics package, we get the following
> error:
> 
> >  forrtl: error (65): floating invalid
> >  IOT trap (core dumped)
> 
> The person who wrote the package blames the Alpha chip for this problem:

That would be incorrect.  There is a bug in the code.

> >I would guess that the Alpha machine is using the same technology DEC
> >used with the VAX.

That would also be incorrect.

> The VAX machine always had a problem in that the
> >range of values that it could represent in double precision was only
> >10**(-38) to 10**(+38).  Other current machines, including PCs have a
> >range of exponents in excess of 300.

Our Alpha can go up from 10**(-300+) to 10**(+300+)

> 
> The package is distributed as FORTRAN source code. When compiled on a
> SUN/UNIX or INTEL/WINDOWS machines the problem does not occur.
>
Most likely the problem is in the way the variables are typed.  
The program could be trying to stuff a double precision value into
a real, and reals only go up to about 10**(38).  Or, you could
be getting a -infinity or a +infinity somewhere.  On some 
systems (AIX xlf Fortran comes to mind) the program will keep
running.  Under MS Powerstation Fortran the program will crash,
on Suns (older versions of F77) it would keep running.
 
> If anyone knows a switch for f77 that would solve this problem, it
> would be greatly appreciated.
>
Try -fpconstant (promotes single precision constants assigned
to double precision  variables to double precision) and -r8
(sets the default real kind as double precision).  See the 
man page for f77. 

Jeff



  parent reply	other threads:[~1997-04-24  4:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-24  4:00 Precision on an Alpha Marcus A. Cuda
1997-04-24  4:00 ` Ron Natalie
1997-04-25  4:00   ` Phillip Helbig
1997-04-24  4:00 ` Jeffrey Potoff [this message]
1997-04-26  4:00   ` Peter Sanger
1997-05-01  4:00     ` Keith Bierman QED
1997-04-25  4:00 ` Don Dossa
1997-04-25  4:00 ` Carl Perkins
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