Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Feb 21, 2022
1 parent 306cca3 commit 40a0763
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/src/round/round.cu
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ std::unique_ptr<column> round_with(column_view const& input,
// overflow. Under this circumstance, we can simply output a zero column because no digits can
// survive such a large scale movement.
if (scale_movement > cuda::std::numeric_limits<Type>::digits10) {
thrust::fill(rmm::exec_policy(stream),
out_view.template begin<Type>(),
out_view.template end<Type>(),
static_cast<Type>(0));
thrust::uninitialized_fill(rmm::exec_policy(stream),
out_view.template begin<Type>(),
out_view.template end<Type>(),
static_cast<Type>(0));
} else {
Type const n = std::pow(10, scale_movement);
thrust::transform(rmm::exec_policy(stream),
Expand Down

0 comments on commit 40a0763

Please sign in to comment.