Skip to content

Fix doxygen tuning doc headings - #9713

Merged
davebayer merged 3 commits into
NVIDIA:mainfrom
bernhardmgruber:fix_tuning_docs
Jul 7, 2026
Merged

davebayer merged 3 commits into
NVIDIA:mainfrom
bernhardmgruber:fix_tuning_docs

Conversation

@bernhardmgruber

Copy link
Copy Markdown
Contributor

Fixes part of #9378

@bernhardmgruber
bernhardmgruber requested a review from a team as a code owner July 6, 2026 09:17
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jul 6, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Jul 6, 2026
@bernhardmgruber bernhardmgruber mentioned this pull request Jul 6, 2026
17 tasks done
@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 62425eba-fba9-47db-a3ba-3d5cdbee2262

📥 Commits

Reviewing files that changed from the base of the PR and between da9db89 and b2a53e6.

📒 Files selected for processing (6)
  • cub/cub/device/device_find.cuh
  • cub/cub/device/device_merge_sort.cuh
  • cub/cub/device/device_partition.cuh
  • cub/cub/device/device_run_length_encode.cuh
  • cub/cub/device/device_segmented_radix_sort.cuh
  • cub/cub/device/device_select.cuh
✅ Files skipped from review due to trivial changes (6)
  • cub/cub/device/device_find.cuh
  • cub/cub/device/device_segmented_radix_sort.cuh
  • cub/cub/device/device_merge_sort.cuh
  • cub/cub/device/device_partition.cuh
  • cub/cub/device/device_run_length_encode.cuh
  • cub/cub/device/device_select.cuh

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Improved and standardized the “Tuning” sections across multiple device APIs.
    • Added clearer section headings and formatting in several operation guides, including copy, sort, scan, transform, select, and partition-related docs.
    • Expanded tuning guidance in one area to better organize key-by-key usage notes and examples.

Walkthrough

Documentation comments in cub device headers were reformatted to use explicit reST-style “Tuning” section headers and underline styling instead of @par Tuning. DeviceSelect also moves ByKey tuning text earlier in the comment block and removes a later duplicate block.

Changes

Tuning documentation header updates

Layer / File(s) Summary
Tuning section reformatting across device headers
cub/cub/device/device_adjacent_difference.cuh, cub/cub/device/device_copy.cuh, cub/cub/device/device_for.cuh, cub/cub/device/device_histogram.cuh, cub/cub/device/device_memcpy.cuh, cub/cub/device/device_merge.cuh, cub/cub/device/device_radix_sort.cuh, cub/cub/device/device_run_length_encode.cuh, cub/cub/device/device_segmented_scan.cuh, cub/cub/device/device_transform.cuh, cub/cub/device/device_find.cuh, cub/cub/device/device_merge_sort.cuh, cub/cub/device/device_partition.cuh, cub/cub/device/device_segmented_radix_sort.cuh
Replaces @par Tuning-style comment markers with explicit “Tuning” section headers and underline formatting in the device header docs.
DeviceSelect tuning docs relocation
cub/cub/device/device_select.cuh
Moves the ByKey tuning documentation earlier in the block, updates the “Tuning” header formatting, and removes the later duplicate tuning block.

Possibly related PRs

  • NVIDIA/cccl#9685: Both PRs touch the cub/cub/device/device_segmented_radix_sort.cuh “Tuning” documentation area.

Suggested reviewers: shwina, NaderAlAwar


Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 45m: Pass: 100%/287 | Total: 12d 11h | Max: 2h 45m | Hits: 20%/981883

See results here.

Comment on lines +62 to +63
//! The ``Encode`` algorithm that accepts an environment can be tuned by passing a custom
//! :ref:`policy selector <cub-policy-selectors>` that returns an @ref RleEncodePolicy.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Encode docs were missing.

Comment on lines +78 to +93
//! All *ByKey algorithms in DeviceSelect that accept an environment can be tuned by passing a
//! custom :ref:`policy selector <cub-policy-selectors>` that returns a @ref UniqueByKeyPolicy, as shown in the
//! example below:
//!
//! .. literalinclude:: ../../../cub/test/catch2_test_device_select_env_api.cu
//! :language: c++
//! :dedent:
//! :start-after: example-begin unique-by-key-policy-selector
//! :end-before: example-end unique-by-key-policy-selector
//!
//! .. literalinclude:: ../../../cub/test/catch2_test_device_select_env_api.cu
//! :language: c++
//! :dedent:
//! :start-after: example-begin unique-by-key-tuning
//! :end-before: example-end unique-by-key-tuning
//!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just moved up from below

@davebayer
davebayer merged commit 02438d6 into NVIDIA:main Jul 7, 2026
307 of 308 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Jul 7, 2026
@bernhardmgruber
bernhardmgruber deleted the fix_tuning_docs branch July 7, 2026 07:48
davebayer pushed a commit to davebayer/cccl that referenced this pull request Jul 13, 2026
* Fix doxygen tuning doc headings

* More Tuning docs consistency

* Fix inconsistent wording
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants