[Haskell-cafe] unknown RTS option: -N2

Stefan O'Rear stefanor at cox.net
Sun Sep 16 00:58:12 EDT 2007

On Sat, Sep 15, 2007 at 09:49:56PM -0700, Gregory Propf wrote:
> I've built a program with the -threaded option using ghc.  This option is supposed to link your program to the threaded runtime with support for multicore CPUS (mine is a dual core).  The program pukes with the message in the subject line when I try to use the -N option to tell it to use both CPUs.  I'm reasonably sure that I actually have the threaded runtime because initially I got a runtime message from the program about how GTK is single threaded and can only be used with the threaded runtime using runtimeunsafeInitGUIForThreadedRTS instead of the standard initGUI.  I made the change in the code and now the program runs but still does not know the -N RTS option.  This problem seems to affect all my programs.  It is as if the threaded runtime is there but doesn't know any of its special flags.  This is the line I'm compiling the program with.  It's a life game clone in case you're curious.  Compiler is ghc-6.4.2 on 64 bit AMD dual core running Gentoo
>  Linux.  - Greg
> ghc -threaded -package gtk -package glade -o hlife hlgtk.o Hlife.o

-Nx is new in 6.6.0

from http://haskell.org/ghc/docs/6.6/html/users_guide/release-6-6.html:


1.4. Release notes for version 6.6

  1.4.1. User-visible compiler changes

     o GHC now supports SMP: when you compile with -threaded, you now get an
       RTS flag -N that allows you to specify the number of OS threads that
       GHC should use. Defaults to 1. See [7]Section 4.12, "Using SMP
       parallelism" and [8]Section 7.15, "Parallel Haskell".a

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070915/ea893522/attachment-0001.bin

More information about the Haskell-Cafe mailing list