<div dir="ltr">I think you need to specify how many cores to use when you call your ./Main program. Something like "./Main -random 4096 4096 -random 4096 4096 +RTS -N4" (given that you have 4 cores). You'll also need to add -rtsopts when you're compiling your code with ghc.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 1:40 AM, Alexander Herz <span dir="ltr"><<a href="mailto:alexander.herz@mytum.de" target="_blank">alexander.herz@mytum.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm new to haskell and I tried to reproduce the perfomance values from the paper "Regular, Shape-polymorphic, Parallel Arrays in Haskell".<br>
<br>
I modified the repa-mmult example from the repa-example package to use the mmultP from Data.Array.Repa.Algorithms.<u></u>Matrix.<br>
<br>
Then I compile it with "ghc -threaded -fglasgow-exts -O Main.hs" but running it with two large matrices :<br>
<br>
"./Main -random 4096 4096 -random 4096 4096" I can see that only one of my 4 cpus is utilized.<br>
<br>
What am I doing wrong?<br>
<br>
Note: The unmodified repa-example also does not run in parallel.<br>
<br>
Thx,<br>
Alex<br>
______________________________<u></u>_________________<br>
Haskell mailing list<br>
<a href="mailto:Haskell@haskell.org" target="_blank">Haskell@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell</a><br>
</blockquote></div><br></div>