<div dir="ltr">How about --ghc-options:<br><br> stack ghci --ghc-options "+RTS -N8 -RTS"<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 1:14 PM, Geraldus <span dir="ltr"><<a href="mailto:heraldhoi@gmail.com" target="_blank">heraldhoi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, now it shows me eight cores. So, I've passed arguments incorrectly, what is the correct way to do this?<div><br></div><div><i>(Also, `<span style="font-size:13.1999998092651px;line-height:15.8399991989136px">$(stack exec which ghci) +RTS -N8` does not work with fish shell which I'm using by default, but I tested your suggestion in bash)</span></i></div></div><br><div class="gmail_quote"><div dir="ltr">пн, 24 авг. 2015 г. в 14:37, Michael Snoyman <<a href="mailto:michael@snoyman.com" target="_blank">michael@snoyman.com</a>>:<br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It looks like you're sending the RTS options to `stack` in the first one, not to ghci itself. What's the result with `$(stack exec which ghci) +RTS -N8`?<br></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Mon, Aug 24, 2015 at 12:32 PM, Geraldus <span dir="ltr"><<a href="mailto:heraldhoi@gmail.com" target="_blank">heraldhoi@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have OS X Yosemite 10.10.4. There are two bundles of GHC (from <a href="http://ghcformacosx.github.io" target="_blank">ghcformacosx.github.io</a>): 7.10.1 and 7.10.2. The latter always shows me one core when running `getNumCapabilities` action:<div><br></div><div><b>GHC 7.10.2</b></div><div><div>> stack ghci +RTS -N8</div><div>Using resolver: lts-3.0 from global config file: /Users/arthurfayzrakhmanov/.stack/global/stack.yaml</div><div>Configuring GHCi with the following packages: </div><div>GHCi, version 7.10.2: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a> :? for help</div><div>Prelude> :m +Control.Concurrent</div><div>Prelude Control.Concurrent> getNumCapabilities </div><div>1</div></div><div><br></div><div><br></div><div><b>GHC 7.10.1</b></div><div>> /Applications/ghc-7.10.1.app/Contents/bin/ghci +RTS -N8</div><div>GHCi, version 7.10.1: <a href="http://www.haskell.org/ghc/" target="_blank">http://www.haskell.org/ghc/</a> :? for help</div><div>Prelude> :m +Control.Concurrent</div><div>Prelude Control.Concurrent> getNumCapabilities</div><div>8</div><div><br></div><div>It looks like a 7.10.2 bug, can some one confirm that?</div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div>
</blockquote></div><br></div>