-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option. #34
Comments
As a workaround user can set |
@cdeepali i had the same issue. Building OpenBLAS from source with I have few Jetson Nano and I guess i found a few ways to fix it:
Nvidia update VPI (https://docs.nvidia.com/vpi/index.html) and i guess it cause the problem.
|
This was resolved by switching PyTorch to use TBB instead of OpenMP. |
@bnemanich how did you do that? |
We switched to using TBB for intra-op parallelism. - https://pytorch.org/docs/stable/notes/cpu_threading_torchscript_inference.html#:~:text=PyTorch%20uses%20a%20single%20thread,(%20intra%2Dop%20parallelism%20). |
yeah, the change was in: |
And just a note for why this was needed. Anaconda's toolchain uses This warning message comes when Pytorch is built with OpenMP support, but then uses an OpenBLAS that was not. Switching Pytorch to use TBB instead of OMP avoids the problem. The downside is still relying on the OpenBLAS package from defaults with no OMP support, which is slower. In a future release we will likely include our own OpenBLAS package built with |
Executing
test_jit
tests with OpenCE is showing numerous warnings:OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option.
This same warning is not observed with WMLCE for same version of OpenBLAS.
The text was updated successfully, but these errors were encountered: