-
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
Multithreading issues preventing views to go in parallel #586
Comments
Besides not being able to use views in expressions, it can be seen that activating multithreading (e.g. commenting this line out: https://github.com/inaos/iron-array/blob/develop/src/iarray_views.c#L573), can lead to run conditions in other situations, like simple slicing, as the helgrind tool is showing:
Ideally, we should provide a way for being able to call postfilters in parallel without these issues. This can be a major task, but fixing that would be of great benefit to us. |
Even with PR #590 , I can still reproduce the freeze on my M1 MacBook Air (but only in that box!):
Although it takes a while to freeze (about 5min), this is reproducible and always freezes in the same place. |
Since f55390e helgrind does not complain in the main view tests. |
A recent optimization for activating type views to go in parallel (6d2964a) had to be disabled (81a8400) because, even though tests are passing, helgrind is issuing pretty scaring race conditions like:
(and tons of others)
These should be addressed before we can finally unleash all the performance out of views. So far, we will use them in pure single-thread environments.
The text was updated successfully, but these errors were encountered: