
Hello Simon, Thursday, May 7, 2009, 5:24:54 PM, you wrote:
A related question I wanted to ask. Is there any way to have my Haskell program support -j3, which is equivalent to +RTS -N3 -RTS. At the moment I've set this up with a shell script to translate the -j3, but a nicer method would be preferable. Even something as sledgehammer like as restartWithNProcessors :: Int -> IO (), which aborted the program entirely and restarted main with a completely fresh heap but a given number of processors.
Neil, you can implement it by yourself - convert -j3 in cmdline to +RTS -N3 -RTS and run program itself. alternatively, you can use defaultsHook() although i'm not sure that it can change number of Capabilities -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com