pariasm / vnlb

Video non-local Bayesian denoising
GNU Affero General Public License v3.0
26 stars 8 forks source link

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

Open huanzheng551803 opened 2 years ago

huanzheng551803 commented 2 years ago

When I run the main function on a sequence with 2 images. It always give us a warning "OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option". Also it seems that the program does no stop even after 5 mins. How can I solve this issue?

pariasm commented 2 years ago

Sorry for the late reply. I never encountered this problem, but apparently this comes from VNLB trying to use parallelization with OpenMP, but OpenBLAS being built without OpenMP support.

So, there are two things you can try.

  1. Disable OpenMP parallelization in VNLB (which will make it run slower)
  2. Recompile OpenBLAS with OpenMP support.

For option 2, you need to download the source code of OpenBLAS and compile it with the flag USE_OPENMP=1. Probably something like this:

make USE_OPENMP=1

I never compiled OpenBLAS from its source code, so I won't be able to help you with that.

For option 1, you can either