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

Only commutative reductions can be parallelized #6609

Merged
merged 1 commit into from
Feb 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ void Stage::set_dim_type(const VarOrRVar &var, ForType t) {
// its identity for each value in the definition if it is a Tuple
const auto &prover_result = prove_associativity(func_name, args, values);

user_assert(prover_result.associative())
user_assert(prover_result.associative() && prover_result.commutative())
<< "Failed to call atomic() on " << name()
<< " since it can't prove associativity of the operator.\n";
<< " since it can't prove associativity or commutativity of the operator.\n";
internal_assert(prover_result.size() == values.size());
}
}
Expand Down