On Tue, May 26, 2009 at 13:13:33 +1000, Trent W.Buck wrote: > Reinier Lamers <[email protected]> writes: > > This is wrong. The test [with just -j4] does not actually use multiple > > CPU threads. To create multiple CPU threads you have to pass the -N > > flag to the Haskell runtime system, with the number of threads. The > > interesting thing to time is "dist/build/unit/unit -j4 +RTS -N4". > > Thanks, that works. The attached patch should make this obvious to > other ignorant schmucks like me.
Applied, thanks! Mention +RTS voodoo in unit --help. ----------------------------------- > ] hunk ./src/unit.lhs 130 > -opts = [Option ['j'] ["jobs"] (ReqArg parse_numjobs "NUM") "Number of > Haskell threads to run unit tests" > +opts = [Option ['j'] ["jobs"] (ReqArg parse_numjobs "NUM") "Number of > Haskell threads to run unit tests (you need +RTS -N<NUM> too)." -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
signature.asc
Description: Digital signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
