numexpr icon indicating copy to clipboard operation
numexpr copied to clipboard

Do not warn if OMP_NUM_THREAD set

Open llchan opened this issue 6 years ago • 0 comments

The line here https://github.com/pydata/numexpr/blob/7c2ef387d81cd450e8220fe4174cf46ec559994c/numexpr/utils.py#L118 should be

if 'NUMEXPR_MAX_THREADS' in os.environ or 'OMP_NUM_THREADS' in os.environ: 

given that the two env vars are treated the same way in the code below that. The current symptom is that this emits a spurious warning about capping num threads to 8.

llchan avatar Sep 11 '19 23:09 llchan