Adjust integrate output for ghc-9
ghc-9 introduces a regression(?) in FP precision (See ghc ticket #19569). While this is unfortunate we want nofib to be useable with ghc 8.10 and 9.0 as far as possible. So I added an additional argument to the benchmark which controls if we output the benchmark result or not, which is off by default. This allows easy checking of the output manually without causing benchmark errors because the output differs. I've also added the benchmark to the ghc testsuite to avoid future regressions.
parent
2341139a
No related branches found
No related tags found
Showing
- imaginary/integrate/Main.hs 6 additions, 6 deletionsimaginary/integrate/Main.hs
- imaginary/integrate/Makefile 3 additions, 3 deletionsimaginary/integrate/Makefile
- imaginary/integrate/integrate.faststdout 0 additions, 1 deletionimaginary/integrate/integrate.faststdout
- imaginary/integrate/integrate.slowstdout 0 additions, 1 deletionimaginary/integrate/integrate.slowstdout
- imaginary/integrate/integrate.stdout 2 additions, 1 deletionimaginary/integrate/integrate.stdout
Please register or sign in to comment