Skip to content
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

Don't let users disguise RVars as Vars #8441

Merged
merged 5 commits into from
Oct 19, 2024
Merged

Don't let users disguise RVars as Vars #8441

merged 5 commits into from
Oct 19, 2024

Conversation

abadams
Copy link
Member

@abadams abadams commented Oct 18, 2024

Fixes #7827

There was one instance in fit_function.cpp, and the autoscheduler was
doing it in the generated schedules. This may cause errors in existing
generated schedules that have been checked in.
@abadams
Copy link
Member Author

abadams commented Oct 18, 2024

This uncovered an error where our generated schedules from adams2019 were incorrectly declaring some RVars as Vars. The scheduling directives used are the ones that are legal for RVars, so there should not be any incorrect output, but adding this check may cause existing checked-in generated schedules to throw a compile-time error. This can be manually fixed up by changing the declaration to be an RVar.

@abadams abadams merged commit 2f734ef into main Oct 19, 2024
15 checks passed
@alexreinking alexreinking deleted the abadams/fix_7827 branch October 21, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing check in split call that could lead to invalid schedules
2 participants