home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!caen!batcomputer!msiadmin.cit.cornell.edu!bai
- From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
- Subject: 2.0 fails miserably in the PARANOIA program ( was: Division by 0 crashes OS2/2.0 )
- Message-ID: <1992Sep9.225858.6523@tc.cornell.edu>
- Sender: news@tc.cornell.edu
- Nntp-Posting-Host: msiadmin.cit.cornell.edu
- Organization: /usr/local/lib/news/organization
- Date: Wed, 9 Sep 1992 22:58:58 GMT
- Lines: 34
-
- For those who dont know what the PARANOIA program is:
-
- This program is for checking FORTRAN compilers, although I believe
- there is a C version as well. It "specializes" in testing precision
- of various floating point operations as well as testing how the
- compiler reacts to division by zero, overflow etc. Because of the
- exceptions it generates, it is normal for the program to be aborted
- several time during execution. It writes all its results in a log
- file, so when it is rerun after aborting, it starts from the previous
- point rather than the beginning.
-
- You can get this program by FTP to
- netlib@research.att.com
- login as netlib (not anonymous!) and look in the directory
- paranoia for the files dpara.f (for double precision) and spara.f
- (for single precision).
-
- I ran the DPARA program compiled with MS-FORTRAN 5.0 under MS-DOS,
- OS/2 Vers 2.0 & 1.3. Under both MS-DOS & 1.3 the program ended with
- 1 "flaw" - which is quite good grade. Under 2.0 it crashed the system after
- Milestone 90, which tests powers of z^i for small integers z, i.
- What's worse is that it is impossible to restart the program, because
- CHKDSK must be run and it does something to the log file which
- prevents the program to restart from the previous abort.
-
-
- So, it looks like the problem is not just with division by 0, but
- other arithemtic as well.
-
- My machine is 386, with 387 Cyrix coprocessor.
-
-
- Dov
-
-