Re: [Numpy-discussion] Set #threads from within python code

2017-03-24 Thread Pavlyk, Oleksandr
Rather than keeping the number of threads MKL uses to 1, it is better to use MKL_THREADING_LAYER=SEQUENTIAL https://software.intel.com/en-us/node/528380 --Sasha From: NumPy-Discussion [mailto:numpy-discussion-bounces+oleksandr.pavlyk=intel@python.org] On Behalf Of Neal Becker Sent: Friday

Re: [Numpy-discussion] Set #threads from within python code

2017-03-24 Thread Neal Becker
Ah, that probably explains it! On Fri, Mar 24, 2017 at 7:37 AM Daπid wrote: > On 24 March 2017 at 12:30, Neal Becker wrote: > > Using os.environ doesn't > > work. I don't understand why. > > It should, I do that for other variables. Are you setting the > variables before importing other librar

Re: [Numpy-discussion] Set #threads from within python code

2017-03-24 Thread Daπid
On 24 March 2017 at 12:30, Neal Becker wrote: > Using os.environ doesn't > work. I don't understand why. It should, I do that for other variables. Are you setting the variables before importing other libraries? They may only get read at import time. __