-
Notifications
You must be signed in to change notification settings - Fork 29
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
Force avx to "avx = false" when use LHS scattering, unless the index is checked to be unique. #27
Comments
LoopVectorization issue: The problem there is that if you try to write to the same memory location multiple times simultaneously, the answer is going to be undefined (but probably equal to one of those simultaneous write attempts). I'd say this is a problem in documentation. @N5N3 should've been able to figure out that this is expected behavior. |
Thanks for finding this. There is some logic to prevent multi-threading from messing this up, with |
So the SubArray ver is correct only because the size is small and the Multi-threads is not open. If true, I think this might be warned somewhere in the document. As it seem's impossible to check the indices of the SubArray. |
Example 1(wrong):
Example 2(right):
As @avx can't tell the user all the misusing, maybe the default set should be avx = false.
The text was updated successfully, but these errors were encountered: