
19 Feb
2011
19 Feb
'11
9:55 a.m.
On 17/02/2011 05:20 PM, Brandon Moore wrote:
If you are using ghc 7.01, you need to compile with -rtsopts for the compiled program to parse +RTS options.
That's true.
I don't know of any way to provide a default value at compile time.
That would be -with-rtsopts="-N2" (or whatever) http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/runtime-control.... But note that with GHC 7.x, the RTS *automatically* chooses the correct number of threads now. You no longer need to specify this manually (unless you specifically want to use some other number of threads for some reason).