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: Jacob Faibussowitsch <[email protected]>
  • Loading branch information
ipdemes and Jacobfaib authored Nov 9, 2023
1 parent df70b28 commit 7070d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cunumeric/unary/scalar_unary_red_template.inl
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ static void scalar_unary_red_template(TaskContext& context)
bool has_where = scalars[2].value<bool>();
size_t start_idx = has_where ? 2 : 1;
std::vector<Store> extra_args;
extra_args.reserve(inputs.size());
for (size_t idx = start_idx; idx < inputs.size(); ++idx)
extra_args.push_back(std::move(inputs[idx]));
extra_args.emplace_back(std::move(inputs[idx]));
// If the RHS was a scalar, use (1,) as the shape
if (shape.dim == 0) {
shape.dim = 1;
Expand Down

0 comments on commit 7070d9f

Please sign in to comment.