Skip to content

Commit

Permalink
Update src/cunumeric/unary/scalar_unary_red_template.inl
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Faibussowitsch <[email protected]>
  • Loading branch information
ipdemes and Jacobfaib authored Nov 9, 2023
1 parent 83308a6 commit df70b28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cunumeric/unary/scalar_unary_red_template.inl
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,12 @@ struct ScalarUnaryRed<KIND, OP_CODE, CODE, DIM, true> {
if constexpr (KIND != VariantKind::GPU) {
// Check to see if this is dense or not
if (dense) {
return ScalarReductionPolicy<KIND, LG_OP, DenseReduction>()(volume, out, identity, *this);
ScalarReductionPolicy<KIND, LG_OP, DenseReduction>()(volume, out, identity, *this);
return;
}
}
#endif
return ScalarReductionPolicy<KIND, LG_OP, SparseReduction>()(volume, out, identity, *this);
ScalarReductionPolicy<KIND, LG_OP, SparseReduction>()(volume, out, identity, *this);
}
};

Expand Down

0 comments on commit df70b28

Please sign in to comment.