-
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
BUG: @synchronize inside loop in CPU is not working #465
Comments
I realized that @uniform works for this, but I'm having issues querying the thread id and block id. For example this is not working because index is not defined
|
I've never run into this for variables defined using Even when doing so, I run into this - @kernel function test_kernel()
@private s = 1
@print("s: ", s, " type: ", typeof(s), "\n")
while s < 6
s += 1
@synchronize()
end
end For some reason,
If you set the while condition to
I cannot comprehend what makes this happen to |
|
Hi! I realized that there is a bug using CPU backend (the same code is working in CUDA backend)
This is the example:
and this is the error:
So, it's like after @synchronize, all local variables are lost and this only happens in the CPU backend.
Any thoughts on this? Thank you very much!
The text was updated successfully, but these errors were encountered: