Skip to content

Commit

Permalink
Improve "rvar not found" error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Dec 10, 2024
1 parent d757298 commit e397d7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ optional<string> rfactor_validate_args(const vector<pair<RVar, Var>> &preserved,
const auto &rv_dim = find_dim(dims, rv);
if (!(rv_dim && rv_dim->is_rvar())) {
std::stringstream s;
s << "can't perform rfactor() on " << rv.name() << " since it is not in the reduction domain";
s << "can't perform rfactor() on " << rv.name()
<< " since either it is not in the reduction domain, or has"
<< " already been consumed by another scheduling directive";
return s.str();
}
is_rfactored.insert(rv_dim->var);
Expand Down

0 comments on commit e397d7a

Please sign in to comment.