Skip to content

Commit

Permalink
Fix calls to copy_bitmask to pass stream parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Sep 21, 2023
1 parent 05ee260 commit 6917d9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/src/lists/count_elements.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
* Copyright (c) 2021-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,7 +52,7 @@ std::unique_ptr<column> count_elements(lists_column_view const& input,
// create output column
auto output = make_fixed_width_column(data_type{type_to_id<size_type>()},
input.size(),
copy_bitmask(input.parent()),
copy_bitmask(input.parent(), stream, mr),
input.null_count(),
stream,
mr);
Expand Down
4 changes: 3 additions & 1 deletion cpp/src/replace/clamp.cu
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ std::enable_if_t<cudf::is_fixed_width<T>(), std::unique_ptr<cudf::column>> clamp
auto output =
detail::allocate_like(input, input.size(), mask_allocation_policy::NEVER, stream, mr);
// mask will not change
if (input.nullable()) { output->set_null_mask(copy_bitmask(input), input.null_count()); }
if (input.nullable()) {
output->set_null_mask(copy_bitmask(input, stream, mr), input.null_count());
}

auto output_device_view =
cudf::mutable_column_device_view::create(output->mutable_view(), stream);
Expand Down

0 comments on commit 6917d9f

Please sign in to comment.