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