You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Maybe multi-threading error between numpy and openBlas
- We should check what is the core-backend of numpy in server: blas or mkl
python
import numpy
numpy.__config__.show()
https://stackoverflow.com/questions/17053671/python-how-do-you-stop-numpy-from-multithreading
https://stackoverflow.com/questions/19257070/unintented-multithreading-in-python-scikit-learn
- Numpy will consume so much time when running multi-thread because the time for exchanging data among cores.
So we should prevent numpy running multi-thread on server.
Adding to the file: ~/.bashrc or ~/.bash_profile:
export OPENBLAS_NUM_THREADS=1 (If OpenBlas)
export MKL_NUM_THREADS=1 (If MKL)
export OPENBLAS_NUM_THREADS=1
export MKL_NUM_THREADS=1
source ~/.bashrc
2. Cannot share object related to matplotlib on server
sudo apt update
sudo apt install libgl1-mesa-glx