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

Function is_npy_no_smp

numpy/core/setup.py:114–123  ·  view source on GitHub ↗

Return True if the NPY_NO_SMP symbol must be defined in public header (when SMP support cannot be reliably enabled).

()

Source from the content-addressed store, hash-verified

112 return sys.platform == 'win32'
113
114def is_npy_no_smp():
115 """Return True if the NPY_NO_SMP symbol must be defined in public
116 header (when SMP support cannot be reliably enabled)."""
117 # Perhaps a fancier check is in order here.
118 # so that threads are only enabled if there
119 # are actually multiple CPUS? -- but
120 # threaded code can be nice even on a single
121 # CPU so that long-calculating code doesn't
122 # block.
123 return 'NPY_NOSMP' in os.environ
124
125def win32_checks(deflist):
126 from numpy.distutils.misc_util import get_build_architecture

Callers 1

generate_numpyconfig_hFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected