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

Method _getNCPUs

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

Source from the content-addressed store, hash-verified

307 return self.info.get('NUM_PROCESSORS') == '1'
308
309 def _getNCPUs(self):
310 return int(self.info.get('NUM_PROCESSORS', 1))
311
312 def __cputype(self, n):
313 return self.info.get('PROCESSORS').split()[0].lower() == 'r%s' % (n)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected