Repository navigation
Document env-overload testing conventions in CUB test guide - #11488
Conversation
Add a section to test_overview.rst describing the two-phase/single-phase API overload split, where each kind of test belongs, and a minimum checklist for env-interaction tests on a new single-phase overload. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe test overview defines test placement and coverage for environment-aware CUB APIs. It separates two-phase functional device tests from single-phase environment-interaction tests. ChangesCUB testing guidance
Suggested reviewers: Priority: ⬇️ Low Change: Other Merge Risk: 🔵 Low · up to The guidance can allow custom-stream tests that miss a default-stream fallback. This is a narrow test-coverage documentation gap and can be addressed in follow-up. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: ed4199f3-fe44-4496-82ab-9224ef59333b
📒 Files selected for processing (1)
docs/cub/developer/test_overview.rst
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
| ``expected_allocation_size(...)`` is honored: the algorithm neither over- nor under-allocates | ||
| temporary storage compared to the two-phase API. | ||
| 3. ``"<algorithm> uses custom stream"`` — passing a ``cuda::stream_ref`` (e.g. obtained from | ||
| ``c2h::make_current_device_stream()``) as custom environment is honored: the algorithm's work |
Adds the missing "uses custom stream" tests for SortKeys, StableSortPairs and SortPairsCopy and switches the SortPairs and StableSortKeys ones to a stream_ref from c2h::make_current_device_stream(), so all seven variants follow the checklist from NVIDIA#11488. The SortPairs tuning test now uses the launch wrapper under the same guard as the other six. The legacy stream test keeps only the nullptr form. Developed in combination with Claude Fable 5.1
Adds the missing "uses custom stream" tests for SortKeys, StableSortPairs and SortPairsCopy and switches the SortPairs and StableSortKeys ones to a stream_ref from c2h::make_current_device_stream(), so all seven variants follow the checklist from NVIDIA#11488. The SortPairs tuning test now uses the launch wrapper under the same guard as the other six. The legacy stream test keeps only the nullptr form. Developed in combination with Claude Fable 5.1
Documents in
docs/cub/developer/test_overview.rstthat every CUB device-wide algorithm must expose a two-phase and a single-phase overload (both taking an environment last), and where each kind of test for them belongs: functional tests incatch2_test_device_xxx.cuvia the two-phase API, environment-interaction tests incatch2_test_device_xxx_env.cuvia the single-phase API only. Adds a recommended minimum checklist of env-interaction tests for new overloads, derived from reviewing the existingcatch2_test_device_*_env.cufiles.🤖 Generated with Claude Code