Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _is_singleCPU
Method
_is_singleCPU
numpy/distutils/cpuinfo.py:306–307 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
304
def
_not_impl(self):
pass
305
306
def
_is_singleCPU(self):
307
return
self.info.get(
'NUM_PROCESSORS'
) ==
'1'
308
309
def
_getNCPUs(self):
310
return
int(self.info.get(
'NUM_PROCESSORS'
, 1))
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected