* how to make div-by-zero cause a fatal error on DS3100?
@ 1989-06-21 18:27 John Sahr
1989-06-22 18:50 ` John Sahr
0 siblings, 1 reply; 2+ messages in thread
From: John Sahr @ 1989-06-21 18:27 UTC (permalink / raw)
We have several DS3100's in our group, being used for a variety of things,
including numbercrunching. The desired behaviour for floating point
errors is a fatal error (for our purposes), which is exactly what happens
on our microvaxes and one other Unix machine.
The DS3100's fortran and C compilers produce code which does not seem to
generate either fatal errors (unheeded SIGFPE) or any other signals, but
just starts to propagate NaN's and Infinity's, and slows down _dramatically_.
Is there a way to detect floating point errors through any kind of signal?
What are we doing wrong? Compiler flags? GCC?
thanks,
john
--
John Sahr, Dept. of Electrical Eng., Cornell University, Ithaca, NY 14853
johns@{alfven,calvin}.ee.cornell.edu, {rochester,cmcl2}!cornell!calvin!johns
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to make div-by-zero cause a fatal error on DS3100?
1989-06-21 18:27 how to make div-by-zero cause a fatal error on DS3100? John Sahr
@ 1989-06-22 18:50 ` John Sahr
0 siblings, 0 replies; 2+ messages in thread
From: John Sahr @ 1989-06-22 18:50 UTC (permalink / raw)
In article <1133@calvin.EE.CORNELL.EDU> johns@calvin.EE.CORNELL.EDU (John Sahr) writes:
>We have several DS3100's in our group, being used for a variety of things,
>including numbercrunching. The desired behaviour for floating point
>errors is a fatal error (for our purposes), which is exactly what happens
>on our microvaxes and one other Unix machine.
>
>The DS3100's fortran and C compilers produce code which does not seem to
>generate either fatal errors (unheeded SIGFPE) or any other signals, but
>just starts to propagate NaN's and Infinity's, and slows down _dramatically_.
Since I posted this I ran across set_fpc_csr() which you can use to cause
SIGFPE to be generated for a variety of faults. This is documented
(apparently) in fpc(3), which for some reason we don't have. Nevertheless,
poking around in <mips/fpu.h> suggested running
set_fpc_csr(FPCSR_ENABLES);
This does cause many SIGFPE's to be generated, although
exp(1.0e6) returns Infinity without a SIGFPE, for example.
see math(3m).
I would appreciate it if someone could suggest to me where I can get
fpc(3) man pages.
thanks,
john
--
John Sahr, Dept. of Electrical Eng., Cornell University, Ithaca, NY 14853
johns@{alfven,calvin}.ee.cornell.edu, {rochester,cmcl2}!cornell!calvin!johns
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1989-06-22 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1989-06-21 18:27 how to make div-by-zero cause a fatal error on DS3100? John Sahr
1989-06-22 18:50 ` John Sahr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox