[GHC] #4319: Default to all cores for executables compiled with new flag -multicore

GHC cvs-ghc at haskell.org
Mon Dec 12 23:26:31 CET 2011


#4319: Default to all cores for executables compiled with new flag -multicore
-------------------------------+--------------------------------------------
  Reporter:  tim.v2.0          |          Owner:                  
      Type:  feature request   |         Status:  closed          
  Priority:  normal            |      Milestone:  7.4.1           
 Component:  Runtime System    |        Version:  6.12.3          
Resolution:  fixed             |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => fixed


Comment:

 You can do this with `-with-rtsopts=-N`, and in 7.4 you can also do it
 programmatically like so:

 {{{
 import GHC.Conc
 main = do setNumCapabilities =<< getNumProcessors
           ...
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4319#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list