<div dir="ltr"><span style="font-size:12.8px">Hi all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">not sure if this is the best place to ask for this. If not, please advise on the correct place.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Since the numpy wheels internally use openBLAS, operations can be implicitly multithreaded directly by openBLAS.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This, of course, can clash with multithreading or parallel processing. The recommended practice in this case is to set </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">export OPENBLAS_NUM_THREADS=1<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">in the environment. However, I would like to be able to adjust this directly in my python code.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is there a way to control this directly through Python, whether through numpy or not?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks for your time!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">--</div><div style="font-size:12.8px">Jean-Christophe Houde</div></div>