MCPcopy Create free account
hub / github.com/pydata/numexpr / get_nthreads

Function get_nthreads

numexpr3/utils.py:64–68  ·  view source on GitHub ↗

Get the number of threads currently being used by the virtual machine.

()

Source from the content-addressed store, hash-verified

62_nthreads = numexpr3.interpreter.set_num_threads( _nthreads )
63
64def get_nthreads() -> int:
65 """Get the number of threads currently being used by the virtual machine."""
66 global _nthreads
67 _nthreads = numexpr3.interpreter.get_num_threads()
68 return _nthreads
69
70def set_nthreads(new_nthreads: int) -> None:
71 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…