Default options for -threaded
lonetiger at gmail.com
Mon Oct 10 16:19:33 UTC 2016
Oh, thanks! I wasn't aware of either or these! Useful to know.
That does cover the use case I could think of.
On Mon, Oct 10, 2016, 14:34 Ben Gamari <ben at well-typed.com> wrote:
> Phyx <lonetiger at gmail.com> writes:
> > Oops, sorry, only just now seen this. It seems my overly aggressive
> > couldn't decide where to put the email :)
> > I do agree to some extend with this. I'd prefer if I made a mistake for
> > system not to hang. The one downside to this default though is that you
> > can't just hand a program over to user and have it run at full
> > If it possible to set this from inside a program? My guess is no, since
> > the time you get to main the rts is already initialized?
> > Would a useful alternative be to provide a compile flag that would change
> > the default? e.g. opt-in? Since now there is a small burden on the end
> There exist two pretty good tools for accomplishing what you want,
> 1. Call Control.Concurrent.setNumCapabilities  from within your
> 2. Use GHC's -with-rtsopts flag  to set the default RTS arguments
> during compilation of your application.
> - Ben
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs