Error “OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option”

Running Torch on CPU mode, I got ”

OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option

“. The code didn’t hang it just kept printing the error.

Go to the folder the OpenBLAS repository (/path/to/OpenBLAS)

cd /path/to/OpenBLAS/
make clean
make USE_OPENMP=1
sudo make install

If you have not already done so,

sudo vi /etc/ld.so.conf.d/openblas.conf

add: /opt/OpenBLAS/lib

then

sudo ldconfig

Comments are closed.