-
Notifications
You must be signed in to change notification settings - Fork 67
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
Strange compile behavior for @turbo #498
Comments
Apparently, the code path for Note that it will turn The reduction check looks for this kind of pattern: for i in I
b = something
for j in J
b = op(b, foo(...))
end
# do something with b
end where it wants to know what *That is, if it SIMDs a loop that one instance of Of course, in your example where you redefine If all you want is a workaround, just use a unique variable name for each assignment. If you want to try fixing LV, you're welcome to do so and I can answer questions.
Long term, I am working on replacing LV; the replacement will not have problems like this. |
Thanks for the detailed explanation... I'll implement the work around which I can update whenever LV get's replaced. Did you want me to leave the issue as open? |
I have a very long sequence of scalar mathematical operations [example of code shown at bottom of thread]. The below can be compiled but if I add one additional line:
I get a: LoadError: "Reduction not found." error
Now if I change this line to the equivalent:
then I do not get an error?
Any thoughts on what might be going on?
P.S. Thanks for the absolutely amazing package
The text was updated successfully, but these errors were encountered: