-
Notifications
You must be signed in to change notification settings - Fork 0
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
Getting segfault when using HPX mutexes and condition variables #3
Comments
We also get an occasional error message from openmp runtime (when OMP_NUM_THREADS is large, ~100)
Another observation is that the code is very very slow compared to the original OpenMP code. Check the hello world example for this. |
@Pansysk75 when you get the chance, can you please look into this? |
Ah thanks for the mention, will do! |
The two PRs above seem to fix both the segfaults and the race-condition-like behaviour mentioned here. The common case works for me, although I didn't have time to stress-test it yet. |
On replacing the pthread mutex and condition variable calls with hpxc the program leads to a segfault and race conditions (See PR #2 for code)
See following output (only a small part) of the hello world example with OMP_NUM_THREADS=100
See that some thread ids are repeated (like 3)
The text was updated successfully, but these errors were encountered: