home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4848 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.8 KB  |  46 lines

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