* About DEC Fortran
@ 1998-11-11 5:00 wuqb
1998-11-11 5:00 ` Dan Pop
1998-11-12 5:00 ` Steve Lionel
0 siblings, 2 replies; 3+ messages in thread
From: wuqb @ 1998-11-11 5:00 UTC (permalink / raw)
Hi,all, I meet problems about DEC Fortran. In DEC C, there
is -ieee option, so I can avoid NaN problem, and the time
spent in computing is fast. But in DEC Fortran, I can not
find -ieee option, there are just -fpe0,-fpe1,-fpe2,-fpe3
options, If I do not use one of them, my program will report
floating error. If I use one of them, the time is very slow.
Why? Does anyone know it? If you know, please help me.
Thanks in advance!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About DEC Fortran
1998-11-11 5:00 About DEC Fortran wuqb
@ 1998-11-11 5:00 ` Dan Pop
1998-11-12 5:00 ` Steve Lionel
1 sibling, 0 replies; 3+ messages in thread
From: Dan Pop @ 1998-11-11 5:00 UTC (permalink / raw)
In <72aluq$f0g$1@nnrp1.dejanews.com> wuqb@nudt.edu.cn writes:
>Hi,all, I meet problems about DEC Fortran. In DEC C, there
>is -ieee option, so I can avoid NaN problem, and the time
>spent in computing is fast. But in DEC Fortran, I can not
>find -ieee option, there are just -fpe0,-fpe1,-fpe2,-fpe3
>options, If I do not use one of them, my program will report
>floating error. If I use one of them, the time is very slow.
Have you considered fixing your code, to avoid the generation of NaNs?
Dan
--
Dan Pop
CERN, IT Division
Email: Dan.Pop@cern.ch
Mail: CERN - EP, Bat. 31 1-014, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About DEC Fortran
1998-11-11 5:00 About DEC Fortran wuqb
1998-11-11 5:00 ` Dan Pop
@ 1998-11-12 5:00 ` Steve Lionel
1 sibling, 0 replies; 3+ messages in thread
From: Steve Lionel @ 1998-11-12 5:00 UTC (permalink / raw)
<wuqb@nudt.edu.cn> wrote in message news:72aluq$f0g$1@nnrp1.dejanews.com...
>Hi,all, I meet problems about DEC Fortran. In DEC C, there
>is -ieee option, so I can avoid NaN problem, and the time
>spent in computing is fast. But in DEC Fortran, I can not
>find -ieee option, there are just -fpe0,-fpe1,-fpe2,-fpe3
>options, If I do not use one of them, my program will report
>floating error. If I use one of them, the time is very slow.
>Why? Does anyone know it? If you know, please help me.
The DEC C -ieee switch is equivalent to DEC Fortran's -fpe3 switch, and the
two do the same things. With the default setting, overflows, zerodivides,
etc. generate errors and underflows silently get set to zero. This is the
fastest mode on Alpha. -fpe3 allows Infinities and NaNs and denormalized
values to be created - NaNs generally cause errors when used, but not
always, depending on the context.
I would concur with the suggestion that you analyze your program and find
out where the errors are occurring, and then determine what you want to do
about them. Just setting -fpe3 without understanding what it does will
often lead to incorrect results.
Steve Lionel mailto:Steve.Lionel@digital.com
DIGITAL Fortran Development http://www.digital.com/info/slionel.html
Compaq Computer Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
DIGITAL Fortran web site: http://www.digital.com/fortran
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-11-12 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-11 5:00 About DEC Fortran wuqb
1998-11-11 5:00 ` Dan Pop
1998-11-12 5:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox