-
Notifications
You must be signed in to change notification settings - Fork 54
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 rfactor replay for DID loop split #3543
base: main
Are you sure you want to change the base?
Changes from all commits
808a295
6f88e5f
28b5aee
f3cd3b2
cb6f442
f45bf68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,12 +121,12 @@ class ReplayRFactor : public ReplayTransformations { | |
// rfactored domains. If it isn't involved in the rfactor, it's no | ||
// longer a redunction domain | ||
std::optional<IterType> outer_iter_type; | ||
if (s->outer()->isReduction() && !rfactor_dep_ids_.count(s->outer())) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without this, I ran into an error with the following local reduction:
The reduction scheduler tries to schedule
and then rFactor axis 1, i.e., rFactor tries to replay all transforms using ReplayRFactor on a new, identical root domain |
||
if (!rfactor_dep_ids_.count(s->outer())) { | ||
outer_iter_type = IterType::Iteration; | ||
} | ||
|
||
std::optional<IterType> inner_iter_type; | ||
if (s->inner()->isReduction() && !rfactor_dep_ids_.count(s->inner())) { | ||
if (!rfactor_dep_ids_.count(s->inner())) { | ||
inner_iter_type = IterType::Iteration; | ||
} | ||
|
||
|
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.
I removed this check because we now expect rFactor to be called by both inter- and intra-GPU schedulers.