Skip to content

Document expected_allocation_size dedup and TEST_LAUNCH guard conventions for CUB env tests - #11609

Merged
bernhardmgruber merged 2 commits into
NVIDIA:mainfrom
bernhardmgruber:env-uses-environment-doc
Sep 23, 2026
Merged

bernhardmgruber merged 2 commits into
NVIDIA:mainfrom
bernhardmgruber:env-uses-environment-doc

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Generated with Claude Code

The "<algorithm> uses environment" checklist item is already tested once
per overload; call out explicitly that the check shouldn't be duplicated
in other test cases covering the same overload for a different item.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@bernhardmgruber
bernhardmgruber requested a review from a team as a code owner September 23, 2026 07:35
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Sep 23, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Sep 23, 2026
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/cccl/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 6216ca1e-d834-481e-804f-9a4c6e13a14f

📥 Commits

Reviewing files that changed from the base of the PR and between 61cd406 and c67aa6d.

📒 Files selected for processing (1)
  • docs/cub/developer/test_overview.rst

Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Documentation
    • Clarified the recommended minimum API test cases and their launch conditions: the default-environment test calls the API directly when TEST_LAUNCH == 0, allocation-size testing runs for all three launch IDs, and custom-stream, tuning, determinism/ordering, and operator/predicate tests run when TEST_LAUNCH != 1.
    • Advised against repeating the allocation-size check for the same overload.

Walkthrough

The environment-aware API testing guidance specifies launch-wrapper and TEST_LAUNCH conditions for recommended minimum test cases.

Changes

Test guidance

Layer / File(s) Summary
Recommended minimum test cases
docs/cub/developer/test_overview.rst
The default-environment test calls the API directly and runs only for TEST_LAUNCH == 0. The allocation-size test runs for all three launch IDs. Custom-stream, tuning, determinism/ordering, and operator/predicate tests run when TEST_LAUNCH != 1.

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to c67aa

The guidance matches the supplied test-wrapper behavior, and no actionable merge risk is identified.


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

… item

Explain which TEST_LAUNCH value(s) each recommended test case should run
under, and why: item 1 bypasses the launch wrapper entirely so it only
needs launch id 0; items 3-6 exclude launch id 1 since a custom stream
is unusable from device code and the launch id 1 memory resource needs
expected_allocation_size upfront, which those tests don't provide.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@bernhardmgruber bernhardmgruber changed the title Clarify expected_allocation_size dedup guidance in CUB test guide Document expected_allocation_size dedup and TEST_LAUNCH guard conventions for CUB env tests Sep 23, 2026
SamMausberg added a commit to SamMausberg/cccl that referenced this pull request Sep 23, 2026
Guards the "uses custom stream" tests with TEST_LAUNCH != 1 and removes
their expected_allocation_size check, which the "uses environment" tests
already cover (NVIDIA#11609). Output vectors are constructed with
thrust::no_init.
@bernhardmgruber
bernhardmgruber merged commit 92522cf into NVIDIA:main Sep 23, 2026
36 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Sep 23, 2026
@bernhardmgruber
bernhardmgruber deleted the env-uses-environment-doc branch September 23, 2026 19:05
SamMausberg added a commit to SamMausberg/cccl that referenced this pull request Sep 24, 2026
Guards the "uses custom stream" tests with TEST_LAUNCH != 1 and removes
their expected_allocation_size check, which the "uses environment" tests
already cover (NVIDIA#11609). Output vectors are constructed with
thrust::no_init.
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