On 28 Sep 2017, at 3:37 pm, Max Linke <max_li...@gmx.de> wrote:
> 
> os.environ can be used to change environment variables from within
> python.
> 
> https://docs.python.org/2/library/os.html#os.environ
> 
> I do not know when openBLAS is reading the environment variables though.
> Changing a value while your python process is running might be to late.

It should use the value that is set at the time a BLAS routine is called.
At least I can confirm that this works analogously within Fortran programs
setting the *NUM_THREADS variables at runtime.

HTH
                                        Derek

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to