Using -Nx Option with GHC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using -Nx Option with GHC

Mark Wassell
Hi,

I am trying to compile and run my program so that it utilises more than
one core on my machine. I have looked at
http://haskell.org/haskellwiki/Shootout/Parallel/BinaryTrees and am
using parMap at a point in my code.

I compile with

ghc --make -O2 -threaded

and run with the options

+RTS -N5

The runtime complains that it doesn't understand the N option.

I am running 6.10.4 on Windows XP.

Cheers

Mark
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Using -Nx Option with GHC

Neil Mitchell
Hi Mark,

> I compile with
>
> ghc --make -O2 -threaded

That should work - try deleting all .o/.obj files and the executable
and trying to compile again.

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Using -Nx Option with GHC

Mark Wassell
That did it, thanks.

Neil Mitchell wrote:

> Hi Mark,
>
>  
>> I compile with
>>
>> ghc --make -O2 -threaded
>>    
>
> That should work - try deleting all .o/.obj files and the executable
> and trying to compile again.
>
> Thanks
>
> Neil
>
>  
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe