-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Using ti.loop_config(serialize=True)
before ti.grouped()
leads to a wrong result
#4807
Comments
This is wired, the two versions have identical optimized IR.
But the final results are different. Is there anything missing in the IR printer? |
This seems to be the
As @turbo0628 said, the IR on both arch are also the same:
|
The same backend should not generate different results given identical IRs. I think there's something missing in the IR printer, which is the key to cause the differences. |
|
It is already in the doc, maybe we can add a warning when serialize=1 is applied on |
Describe the bug
When using
ti.loop_config(serialize=True)
beforeti.grouped()
, I will get a wrong execution result. If we do not support such usage, maybe we should point out this in the doc, or give an error message at the compilation stage.To Reproduce
A prefix sum example is shown as below:
The text was updated successfully, but these errors were encountered: