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: Manolis Papadakis <[email protected]>
  • Loading branch information
ipdemes and manopapad authored Nov 17, 2023
1 parent f080a95 commit c039cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cunumeric/unary/scalar_unary_red_template.inl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct ScalarUnaryRed {
__CUDA_HD__ void operator()(LHS& lhs, size_t idx, LHS identity, DenseReduction) const noexcept
{
bool mask = true;
if constexpr (HAS_WHERE) mask = (whereptr[idx] == true);
if constexpr (HAS_WHERE) mask = whereptr[idx];

if constexpr (OP_CODE == UnaryRedCode::CONTAINS) {
if (mask && (inptr[idx] == to_find)) { lhs = true; }
Expand Down

0 comments on commit c039cb2

Please sign in to comment.