Faster, GHC, and floating point.

JP Bernardy jyp_7 at yahoo.com
Sat Oct 18 05:32:06 EDT 2003


--- ajb at spamcop.net wrote:
> Quoting JP Bernardy <jyp_7 at yahoo.com>:
> 
> > 1. Use -fexcess-precision, unless you really need
> the
> > exact (lesser) precision. Otherwise each
> intermediate
> > result is spilled in memory. This hurts!
> 
> Yes, but it does avoid incorrect numerics, which
> hurts fewer times, but
> when it does, it hurts a LOT more. :-)

With an SSE processor, it is possible to have both
speed and exact precision, passing
-optc-march=pentium4 -optc-mfpmath=sse to ghc, in
addition to -fexcess-precision.

BTW, as requested, I've contributed a page about this
to the haskell wiki. 

http://haskell.org/hawiki/FasterFloatingPointWithGhc

Cheers,
JP.

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


More information about the Glasgow-haskell-users mailing list