MCPcopy Create free account
hub / github.com/ipython/ipython / _num_cpus_unix

Function _num_cpus_unix

IPython/utils/sysinfo.py:121–123  ·  view source on GitHub ↗

Return the number of active CPUs on a Unix system.

()

Source from the content-addressed store, hash-verified

119 return pprint.pformat(get_sys_info())
120
121def _num_cpus_unix():
122 """Return the number of active CPUs on a Unix system."""
123 return os.sysconf("SC_NPROCESSORS_ONLN")
124
125
126def _num_cpus_darwin():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected