From 6896b4ea61ef9ca75c56059536258bb4b2afc6db Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Fri, 17 Nov 2023 10:40:21 -0800 Subject: [PATCH] Update src/cunumeric/unary/unary_red_template.inl Co-authored-by: Manolis Papadakis --- src/cunumeric/unary/unary_red_template.inl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cunumeric/unary/unary_red_template.inl b/src/cunumeric/unary/unary_red_template.inl index eecc45ddf..87750e17c 100644 --- a/src/cunumeric/unary/unary_red_template.inl +++ b/src/cunumeric/unary/unary_red_template.inl @@ -92,7 +92,11 @@ static void unary_red_template(TaskContext& context) has_where ? inputs[1] : dummy_where, scalars[0].value(), scalars[1].value()}; - op_dispatch(args.op_code, UnaryRedDispatch{}, args); + if (has_where) { + op_dispatch(args.op_code, UnaryRedDispatch{}, args); + } else { + op_dispatch(args.op_code, UnaryRedDispatch{}, args); + } } } // namespace cunumeric