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

2011-02-20 Thread Andrew Coppin
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

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

2011-02-20 Thread Andrew Coppin
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

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

2011-02-19 Thread Edward Amsden
> 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

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

2011-02-19 Thread Andrew Coppin
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:/

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

2011-02-18 Thread C K Kashyap
> > > 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

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

2011-02-17 Thread Brandon Moore
>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

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

2011-02-17 Thread Daniel Fischer
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

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

2011-02-17 Thread 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 don't see any speed gain compared to N1.