-
Notifications
You must be signed in to change notification settings - Fork 347
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
fix: only rewrite arithmetic when targeting Aspen processors #1679
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unfortunate we have to do this, but this implementation looks right, thanks. We can all look forward to reverting this when Aspen-M-3 is retired!
Description should include a summary of your approach and rationale for quick review, both now and later (when we forget about this and wonder why we did it). Plot illustration is 👍
Also, the title becomes the commit message, and this is more than just Aspen-M-3, it's any Aspen.
Approved when comments addressed 🚢
This MR changes when the
rewrite_arithmetic
functionality is used. We support two translation backends:rewrite_arithmetic
, and does not support Ankaa (or later) processors; andrewrite_arithmetic
.Thus, to bridge the gap between the transition from V1 to V2, this MR only rewrites arithmetic if the target processor is of the Aspen family. If the user requests a backend that is not supported for the target processor, a warning is emitted and the correct backend is used instead.
When Aspen-M-3 goes offline, we can remove the checks introduced by this MR and instead require that V2 is always used.
Closes #1678
Below are plots for a program that should have period 2pi. In the first, the period is much larger.
Without fix:
With fix: