diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-10-23 13:30:33 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-10-23 13:30:33 +0000 |
commit | ce8fed3a3558468b128a03cc4c96aa6c11357b4d (patch) | |
tree | ff5fa5486e17007b06bfcdaf35779b828d102941 /README | |
parent | faeaf6d261b760e628c1e63551d822d16876c0cc (diff) |
NaN problem solved with asm(finit)
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -96,10 +96,6 @@ A number of illustrative programs are included in the examples folder. | |||
96 | 96 | ||
97 | KNOWN PROBLEMS / BUGS ------------------------------- | 97 | KNOWN PROBLEMS / BUGS ------------------------------- |
98 | 98 | ||
99 | - Compilation with -O -fasm on 32-bit machines produces strange | ||
100 | NaN's results on certain foreign calls. More info at | ||
101 | http://www.hmatrix.googlepages.com/bugs | ||
102 | |||
103 | - On 64-bit machines the example "minimize.hs", when run from ghci, | 99 | - On 64-bit machines the example "minimize.hs", when run from ghci, |
104 | produces a segmentation fault. It happens in the call to | 100 | produces a segmentation fault. It happens in the call to |
105 | gsl_multimin_fdfminimizer_alloc, inside the C wrapper. | 101 | gsl_multimin_fdfminimizer_alloc, inside the C wrapper. |
@@ -108,17 +104,8 @@ KNOWN PROBLEMS / BUGS ------------------------------- | |||
108 | program seems to work perfectly well. | 104 | program seems to work perfectly well. |
109 | 105 | ||
110 | - On Ubuntu 6.06 LTS (Dapper) atlas3-sse2-dev (3.6.0-20) | 106 | - On Ubuntu 6.06 LTS (Dapper) atlas3-sse2-dev (3.6.0-20) |
111 | produces segmentation faults when working with big matrices | 107 | produced segmentation faults when working with big matrices |
112 | on compiled programs. To expose the problem: | 108 | on compiled programs. |
113 | |||
114 | $ cd examples | ||
115 | $ ghc --make -O -fvia-C tests.hs | ||
116 | $ ./tests --big | ||
117 | |||
118 | If this crashes, just uninstall atlas3-sse2 and use atlas3-base-dev instead. | ||
119 | Fortunately, atlas3-sse2-dev seems to work well on Ubuntu 7.10 Gutsy. | ||
120 | A similar problem was reported at: | ||
121 | http://article.gmane.org/gmane.linux.debian.devel.bugs.general/323065 | ||
122 | 109 | ||
123 | - On distributions with old GSL versions you should comment out a couple of functions | 110 | - On distributions with old GSL versions you should comment out a couple of functions |
124 | in the export lists of Ellint.hs and Debye.hs | 111 | in the export lists of Ellint.hs and Debye.hs |
@@ -227,3 +214,6 @@ in the Haskell mailing lists for their help. | |||
227 | 214 | ||
228 | - Dylan Alex Simon improved the numeric instances to allow optimized | 215 | - Dylan Alex Simon improved the numeric instances to allow optimized |
229 | implementations of signum and abs on Vectors. | 216 | implementations of signum and abs on Vectors. |
217 | |||
218 | - Pedro E. López de Teruel discovered the need of asm("finit") to | ||
219 | avoid the wrong NaNs produced by foreign functions. | ||