Skip to content

Commit

Permalink
Update src/cunumeric/unary/unary_red.cu
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 fa19be7 commit a51135d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cunumeric/unary/unary_red.cu
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ static __device__ __forceinline__ Point<DIM> local_reduce(LHS& result,
if (!domain.contains(point)) return point;

bool mask = true;
if constexpr (HAS_WHERE) mask = (where[point] == true);
if constexpr (HAS_WHERE) mask = where[point];
while (point[collapsed_dim] <= domain.hi[collapsed_dim]) {
if (mask) {
LHS value = OP::convert(point, collapsed_dim, identity, in[point]);
Expand Down

0 comments on commit a51135d

Please sign in to comment.