For what it's worth, you can also use GHC.Conc.Sync.numCapabilities to
find out how many cores are actually being used, if you wanted to check.
(I thought this was also exported from Control.Concurrent, but
apparently not...)
___
Haskell-Cafe mailin
On 19/02/2011 04:57 PM, Edward Amsden wrote:
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).
Is that stated in the change
> 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).
Is that stated in the changelog or documentation somewhere? Do you
sti
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:/
>
>
> Hmm, using parSumFibEuler instead of sumFibEuler, I get > 100% CPU usage
> (close to 200% if I adjust parameters so both computations take
> approximately the same time).
> Works for me, then.
>
Thanks Daniel!!!
___
Haskell-Cafe mailing list
Haskel
>From: C K Kashyap
>
>Hi,
>I tried the first example from "A tutorial on Parallel and Concurrent
>programming in Haskell" but I cant seem to get sparks to get converted to OS
>threads.
>
>
>Below is the program I am using.
>I did ghc --make -threaded program.hs
>then
>./program +RTS -N2
>I d
On Thursday 17 February 2011 17:02:55, C K Kashyap wrote:
> Hi,
> I tried the first example from "A tutorial on Parallel and Concurrent
> programming in Haskell" but I cant seem to get sparks to get converted
> to OS threads.
>
> Below is the program I am using.
> I did ghc --make -threaded program
Hi,
I tried the first example from "A tutorial on Parallel and Concurrent
programming in Haskell" but I cant seem to get sparks to get converted to OS
threads.
Below is the program I am using.
I did ghc --make -threaded program.hs
then
./program +RTS -N2
I don't see any speed gain compared to N1.