[Haskell-cafe] Unable to get parallelism using `par`

Andrew Coppin andrewcoppin at btinternet.com
Sat Feb 19 15:55:18 CET 2011

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)


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).

More information about the Haskell-Cafe mailing list