Repository navigation
Convert headers' scratch rmm::device_uvector<T> to cuda::device_buffer<T> - #24975
rapids-bot[bot] merged 2 commits into
Conversation
…ffer<T>` Use CCCL buffers instead of RMM vectors where possible in inline implementations in the headers. Issue: rapidsai/build-planning#321
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Detail storage and temporary allocations cpp/include/cudf/detail/device_scalar.hpp, cpp/include/cudf/detail/gather.cuh, cpp/include/cudf/detail/labeling/label_segments.cuh, cpp/include/cudf/detail/null_mask.cuh, cpp/include/cudf/detail/row_operator/primitive_lexicographic.cuh, cpp/include/cudf/detail/utilities/batched_memset.hpp |
Device scalar storage and temporary allocations for gather, labeling, null masks, lexicographic comparison, and batched memset now use CUDA device buffers. |
Reduction storage cpp/include/cudf/reduction/detail/approx_distinct_count.cuh, cpp/include/cudf/reduction/detail/segmented_reduction.cuh, cpp/src/reductions/approx_distinct_count.cu |
Reduction-owned storage uses CUDA device buffers. The approximate distinct-count sketch visitors recognize the new owning storage type, and the span-backed constructor no longer accepts or stores a memory resource. |
Strings temporary allocations cpp/include/cudf/strings/detail/copy_if_else.cuh, cpp/include/cudf/strings/detail/strings_children.cuh, cpp/include/cudf/strings/detail/strings_column_factories.cuh |
Temporary indices, sizes, character sizes, and valid counts use CUDA device buffers. |
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Refactor
Suggested reviewers: pointkernel
Merge Risk: 
Minimal · up to 87da2
-
The migration introduces no confirmed merge-blocking risk and is suitable to merge with normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 3 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
bdice
left a comment
There was a problem hiding this comment.
Approving but there's an opportunity for cleanup, I think.
|
/merge |
Description
Use CCCL buffers instead of RMM vectors where possible in inline implementations in the headers.
Issue: rapidsai/build-planning#321
Checklist