
#8594: sysctl name "hw.ncpu" (HW_NCPU) is deprecated in Mac OS X -----------------------------------+------------------------------------ Reporter: kseo | Owner: simonmar Type: task | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.6.3 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -----------------------------------+------------------------------------ Comment (by kseo): It seems hw.ncpu is equivalent to hw.logicalcpu. {{{ kseo@com100ui-MacBook-Pro:~> sysctl hw.ncpu hw.ncpu: 4 }}} {{{ kseo@com100ui-MacBook-Pro:~> sysctl hw.logicalcpu hw.logicalcpu: 4 }}} {{{ kseo@com100ui-MacBook-Pro:~> sysctl hw.physicalcpu hw.physicalcpu: 2 }}} Does GHC have a benchmark suite to measure the impact of this change? If not, we can fallback to hw.logicalcpu if hw.ncpu is not available. This at least preserves the current behavior. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8594#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler