Skip to content

Commit 294f283

Browse files
committed
change util to detail
1 parent 0a4e5d5 commit 294f283

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎cpp/src/strings/search/contains.cu‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ CUDF_KERNEL void lrb_search_kernel(column_device_view const d_strings,
384384
// log2 of the chunk tasks per row of this lane's bin: rows in bin b have at most 2^b bytes
385385
auto const chunk_shift = cuda::std::max(lane - LRB_CHUNK_SHIFT, 0);
386386
auto const bin_tasks =
387-
static_cast<int64_t>(cudf::util::div_rounding_up_safe(bin_count, rows_per_task)) << chunk_shift;
387+
static_cast<int64_t>(cudf::detail::div_rounding_up_safe(bin_count, rows_per_task))
388+
<< chunk_shift;
388389
auto const tasks_incl = cg::inclusive_scan(warp, bin_tasks);
389390
auto const tasks_excl = tasks_incl - bin_tasks;
390391
auto const bin_start = cg::exclusive_scan(warp, bin_count);
@@ -467,7 +468,7 @@ std::unique_ptr<column> contains(strings_column_view const& input,
467468
auto sorted = cuda::device_buffer<size_type>(stream, tmp_mr, num_rows, cuda::no_init);
468469

469470
auto const num_sms = static_cast<int64_t>(cudf::detail::num_multiprocessors());
470-
auto const row_blocks = cudf::util::div_rounding_up_safe<int64_t>(num_rows, LRB_BLOCK_SIZE);
471+
auto const row_blocks = cudf::detail::div_rounding_up_safe<int64_t>(num_rows, LRB_BLOCK_SIZE);
471472
auto const stride_grid = static_cast<int>(std::min<int64_t>(row_blocks, num_sms * 8));
472473

473474
// one row per thread (like thrust::transform) rather than grid-stride: the direct search in

0 commit comments

Comments
 (0)