Skip to content

FIX #294: fork-safe pthread mode - #343

Merged
xianyi merged 4 commits into
OpenMathLib:developfrom
ogrisel:fix-294-fork-safe-pthread
Feb 19, 2014
Merged

xianyi merged 4 commits into
OpenMathLib:developfrom
ogrisel:fix-294-fork-safe-pthread

Conversation

@ogrisel

@ogrisel ogrisel commented Feb 19, 2014

Copy link
Copy Markdown
Contributor

This is a fix for #294 (OpenBLAS hangs when calling DGEMM after a Unix fork) when OpenBLAS is built with make USE_OPENMP=0.

When built with OpenMP and GCC/libgomp, the freeze will still happen and can only be fixed in the libgomp library itself, for instance by:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035

The CPU affinity (if any) is not reset upon forking. This will be addressed in a separate PR.

@juliantaylor

Copy link
Copy Markdown

this doesn't fix the deadlock in the numpy parent + child blas call testcase in the issue for me.
i'm using ubuntu 14.04 amd64
the simpler non lazy patch did fix the issue

@juliantaylor

Copy link
Copy Markdown

ignore my last message, I tested the openmp variant ..., pthread patch seems to work fine thanks

@ogrisel

ogrisel commented Feb 19, 2014

Copy link
Copy Markdown
Contributor Author

Great. Thanks for testing.

@ogrisel

ogrisel commented Feb 19, 2014

Copy link
Copy Markdown
Contributor Author

About the travis failure, this is caused by the windows cross-compiled build that times out. I have tried to build it on my box with the same command line arguments and it completes successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants