[GHC] #12685: getNumProcessors semantics dont match documentation

GHC ghc-devs at haskell.org
Mon Oct 10 19:17:58 UTC 2016


#12685: getNumProcessors semantics dont match documentation
----------------------------------------+---------------------------------
           Reporter:  Llgn              |             Owner:
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:
          Component:  libraries/base    |           Version:  8.0.1
           Keywords:                    |  Operating System:  Linux
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 Hi,

 The documentation of getNumProcessors says :
 "Returns the number of CPUs that the machine has", but it is true only for
 program compiled with -threaded option.
 https://hackage.haskell.org/package/base-4.9.0.0/docs/GHC-Conc-
 Sync.html#v:getNumProcessors

 I guess the documentation is just misleading. Or is it a bug ?


 Regards

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12685>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list