From a51135df4d728ed9cca382bf0576cba584416de5 Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Fri, 17 Nov 2023 10:35:44 -0800 Subject: [PATCH] Update src/cunumeric/unary/unary_red.cu Co-authored-by: Manolis Papadakis --- src/cunumeric/unary/unary_red.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cunumeric/unary/unary_red.cu b/src/cunumeric/unary/unary_red.cu index 17697e73b..47ae3ecc4 100644 --- a/src/cunumeric/unary/unary_red.cu +++ b/src/cunumeric/unary/unary_red.cu @@ -282,7 +282,7 @@ static __device__ __forceinline__ Point 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]);