ism3d.utils.set_threads¶
-
ism3d.utils.
set_threads
(num=None)[source]¶ some underline alrgoithm library can use OMP turn on OMP is beneficial for iteration optimizwer but not for parallele optimizer this function can turn on / turn off OMP in modelling alrothjm
- ref:
looks like os.environ will only work before import packages after the packages are imported, changing os.environ can not dynamically switching nthreads
https://software.intel.com/en-us/mkl-linux-developer-guide-mkl-domain-num-threads http://www.diracprogram.org/doc/release-17/installation/mkl.html https://software.intel.com/en-us/blogs/2018/10/18/mkl-service-package-controlling-mkl-behavior-through-python-interfaces