home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / misc / 170 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  5.0 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!utcsri!helios.physics.utoronto.ca!sysmark
  2. From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
  3. Newsgroups: comp.sys.sgi.misc
  4. Subject: Re: any update on plans for {fortran,C} support of 128-bit floats?
  5. Message-ID: <C0G4ID.Gn8@helios.physics.utoronto.ca>
  6. Date: 6 Jan 93 18:54:12 GMT
  7. References: <3236@contex.contex.com> <1993Jan6.005916.800@odin.corp.sgi.com> <C0Ew8s.Jou@news.cso.uiuc.edu>
  8. Sender: news@helios.physics.utoronto.ca (News Administrator)
  9. Reply-To: mark@cita.toronto.edu
  10. Organization: University of Toronto Physics/Astronomy/CITA
  11. Lines: 81
  12.  
  13. [ Furio Ercolessi ]
  14.  
  15. | But if i remember correctly the original post (there is a bit of it above), the
  16. | question was "can we have 128-bit float support in your compilers" ?
  17.  
  18. Thanks for getting the discussion back on track!  It had drifted somewhat:  At
  19. one point, someone even started talking about 128-bit *integers*, which is of
  20. no concern to me, and which hadn't been mentioned at all in my original article.
  21. (Gee, I didn't think that my writing style was *that* ambiguous! :-)
  22.  
  23. [ John Mashey ]
  24.  
  25. | 4) IF you think you really need 128-bit FP, it would probably help us to
  26. | post/email what you're doing.  Of course, if you were to post that you would
  27. | buy $100Ms of computers because of this feature, more attention would
  28. | be attracted :-)....  but seriously, we're interested in this area and willing
  29. | to listen to people on it.
  30.  
  31. [ Furio Ercolessi ]
  32.  
  33. | I believe that having software support would still be very useful for
  34. | development of numerical algorithms.  sometimes you need a 'reference run'
  35. | to check the stability of differential equation solvers or whatever.
  36. | you may not care if this reference run is slow.
  37.  
  38. Quite so.  Here's an excerpt from a message I've already sent John in reply,
  39. discussing a local need for 128-bit FP; specifically, applications involving
  40.  
  41.  integrating simple ordinary differential equations for billions of timesteps.
  42.  With the current IEEE double-precision standard, round-off error is a
  43.  considerable problem in this field. Three or four years ago, for example, some
  44.  Italian researchers wrote a long review article arguing that roundoff set a
  45.  fundamental limitation on how far these integrations could be carried.  Since
  46.  then, a reasonable workaround has been found: to carry out selected critical
  47.  operations in quad precision by writing our own subroutines to do quad
  48.  precision in fortran or c. This works because the critical operations are adds
  49.  and subtracts, which take only 2 or 3 times longer in quad; multiplies and
  50.  divides take at least a factor of 10 longer.  However, this workaround is not
  51.  likely to work very well in the future, for two reasons:
  52.  
  53.  1. In the new, faster integration algorithms that are now being used we cannot
  54.  isolate a few critical operations.
  55.  
  56.  2. As machines get faster, we do longer integrations and so the problem gets
  57.  worse.
  58.  
  59.  128-bit FP would drive the roundoff problem down to an ignorable level; if
  60.  128-bit were available within 2 or 3 times the speed of 64-bit most people
  61.  would use it routinely. If it were 10 times slower most people would still use
  62.  it to carry out short integrations as an accuracy check.
  63.  
  64. [ Furio Ercolessi ]
  65.  
  66. | so i would say, thanks hardware guys, don't worry about that,
  67. | and perhaps it's now the time for compiler folks to jump on this thread :-)
  68.  
  69. Which, actually, was my original point.  Although an implementation of 128-bit
  70. FP in silicon would be wonderful, all I'm hoping for at the moment is compiler
  71. support:  Just because the R4xxx family doesn't (and perhaps never will?) have
  72. 128-bit FP support, this doesn't preclude the *compilers* from supporting it.
  73. After all, UNIX supported 32-bit integers back in the late 1970s, on PDP-11s
  74. which supported only 16-bit integers.  Now I'll grant that this would be a more
  75. difficult problem than that was, but nonetheless I find it hard to believe that
  76. it would be extraordinarily difficult, either.  And of course, the performance
  77. might well be painfully slow compared to what we would have if the chip itself
  78. supported 128-bit FP, but slow is better than nothing!
  79.  
  80. And, if you won't give us even *that*, could you at least make the (trivial?)
  81. change to the C compiler so that sizeof(long double) is 16 rather than 8?  If
  82. the low 64 bits are always zero, or always ignored, or whatever, at least this
  83. would permit mixed-language {C,Fortran) applications to port a bit more easily.
  84. (Of course one could argue that if one is porting an application that requires
  85. 128-bit FP, one shouldn't bother trying to run it on a platform that provides
  86. only 64-bit FP support.  But that's an topic for a different newsgroup ...)
  87.  
  88. Mark Bartelt                                                     416/978-5619
  89. Canadian Institute for                                  mark@cita.toronto.edu
  90. Theoretical Astrophysics                                mark@cita.utoronto.ca
  91.  
  92. "Sheep not busy being shorn are busy frying"  -  Dylan, at a NZ lamb barbecue
  93.              [ singing "It's all right, ma (I'm only bleating)" ]
  94.