Repository navigation
Improve tuning introduction docs - #9661
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughDocs-only changes split CUB tuning content into a policy-selector guide and a separate tuning-infrastructure guide, removed the standalone policy-selectors page, and updated cross-references and navigation to the new page layout. ChangesTuning documentation restructuring
Assessment against linked issues
Suggested reviewers: Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: d269bcb9-f8bb-4b95-a60c-1668336fcb8c
📒 Files selected for processing (7)
docs/cub/benchmarking.rstdocs/cub/developer/device_scope.rstdocs/cub/index.rstdocs/cub/policy_selectors.rstdocs/cub/tuning.rstdocs/cub/tuning_infra.rstnvbench_helper/nvbench_helper/nvbench_helper.cuh
💤 Files with no reviewable changes (1)
- docs/cub/policy_selectors.rst
| #if !TUNE_BASE | ||
| template <typename T> | ||
| struct policy_selector { | ||
| _CCCL_HOST_DEVICE_API constexpr auto operator()(cuda::compute_capability /*cc*/) const -> cub::ReducePolicy { | ||
| const auto [items, threads] = cub::detail::scale_mem_bound( | ||
| TUNE_THREADS_PER_BLOCK, TUNE_ITEMS_PER_THREAD, sizeof(T)); | ||
| const auto policy = cub::detail::agent_reduce_policy{ | ||
| .threads_per_block = threads, | ||
| .items_per_thread = items, | ||
| .vector_load_length = 1 << TUNE_ITEMS_PER_VEC_LOAD_POW2, | ||
| .block_algorithm = cub::BLOCK_REDUCE_WARP_REDUCTIONS, | ||
| .load_modifier = cub::LOAD_DEFAULT | ||
| }; | ||
| return {policy, policy, policy, policy}; | ||
| } | ||
| }; | ||
| #endif |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
important: Define the missing tuning macro in the example.
TUNE_ITEMS_PER_VEC_LOAD_POW2 is used in the selector but never introduced by the surrounding %RANGE% comments, so this code block is not self-contained. Add the missing macro definition or remove the reference.
As per path instructions, docs/**/*: focus on technical accuracy and buildable examples.
Source: Path instructions
🥳 CI Workflow Results🟩 Finished in 2h 16m: Pass: 100%/37 | Total: 8h 40m | Max: 55m 16s | Hits: 83%/30211See results here. |
Note to reviewers: The diff looks a bit large, but I basically renamed
tuning.rst->tuning-_infra.rstFixes: #8731