Skip to content

Commit

Permalink
Update src/cunumeric/unary/unary_red.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Manolis Papadakis <[email protected]>
  • Loading branch information
ipdemes and manopapad authored Nov 17, 2023
1 parent a51135d commit e703cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cunumeric/unary/unary_red.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct UnaryRedImplBody<VariantKind::CPU, OP_CODE, CODE, DIM, HAS_WHERE> {
for (size_t idx = 0; idx < volume; ++idx) {
auto point = pitches.unflatten(idx, rect.lo);
bool mask = true;
if constexpr (HAS_WHERE) mask = (where[point] == true);
if constexpr (HAS_WHERE) mask = where[point];
if (mask) {
auto identity = LG_OP::identity;
lhs.reduce(point, OP::convert(point, collapsed_dim, identity, rhs[point]));
Expand Down

0 comments on commit e703cc9

Please sign in to comment.