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

Method __cputype

numpy/distutils/cpuinfo.py:312–313  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

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)
314 def _is_r2000(self): return self.__cputype(2000)
315 def _is_r3000(self): return self.__cputype(3000)
316 def _is_r3900(self): return self.__cputype(3900)

Callers 15

_is_r2000Method · 0.95
_is_r3000Method · 0.95
_is_r3900Method · 0.95
_is_r4000Method · 0.95
_is_r4100Method · 0.95
_is_r4300Method · 0.95
_is_r4400Method · 0.95
_is_r4600Method · 0.95
_is_r4650Method · 0.95
_is_r5000Method · 0.95
_is_r6000Method · 0.95
_is_r8000Method · 0.95

Calls 3

lowerMethod · 0.80
splitMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected