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

Method _getNCPUs

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

Source from the content-addressed store, hash-verified

426 return self.info['isainfo_n']=='sparcv9'
427
428 def _getNCPUs(self):
429 return int(self.info['uname_X'].get('NumCPU', 1))
430
431 def _is_sun4(self):
432 return self.info['arch']=='sun4'

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected