MCPcopy Create free account
hub / github.com/numpy/numpy / _getNCPUs

Method _getNCPUs

numpy/distutils/cpuinfo.py:365–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 def _not_impl(self): pass
364
365 def _getNCPUs(self):
366 return int(self.info['sysctl_hw'].get('hw.ncpu', 1))
367
368 def _is_Power_Macintosh(self):
369 return self.info['sysctl_hw']['hw.machine']=='Power Macintosh'

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected