Skip to content

Rename FindPolicy to FindIfPolicy - #9689

Merged
bernhardmgruber merged 2 commits into
NVIDIA:mainfrom
bernhardmgruber:rename_find_policy
Jul 3, 2026
Merged

bernhardmgruber merged 2 commits into
NVIDIA:mainfrom
bernhardmgruber:rename_find_policy

Conversation

@bernhardmgruber

Copy link
Copy Markdown
Contributor

To put more emphasize on the policy applying only to the FindIf algorithm in DeviceFind.

@bernhardmgruber
bernhardmgruber requested a review from a team as a code owner July 2, 2026 10:56
@bernhardmgruber
bernhardmgruber requested a review from davebayer July 2, 2026 10:56
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jul 2, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Jul 2, 2026
@coderabbitai

coderabbitai Bot commented Jul 2, 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: 9197d689-339b-4994-a26f-350c67d0d55f

📥 Commits

Reviewing files that changed from the base of the PR and between 29c2ea0 and 1d39b89.

📒 Files selected for processing (5)
  • cub/cub/device/device_find.cuh
  • cub/cub/device/dispatch/dispatch_find.cuh
  • cub/cub/device/dispatch/tuning/tuning_find.cuh
  • cub/test/catch2_test_device_find_env.cu
  • cub/test/catch2_test_device_find_env_api.cu
✅ Files skipped from review due to trivial changes (1)
  • cub/cub/device/device_find.cuh
🚧 Files skipped from review as they are similar to previous changes (4)
  • cub/test/catch2_test_device_find_env_api.cu
  • cub/test/catch2_test_device_find_env.cu
  • cub/cub/device/dispatch/dispatch_find.cuh
  • cub/cub/device/dispatch/tuning/tuning_find.cuh

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Corrected DeviceFind tuning and dispatch to use the proper FindIfPolicy, improving policy selection for FindIf operations.
    • Updated the environment-based tuning API to return the matching FindIfPolicy type.
  • Documentation
    • Refreshed inline documentation to reference the correct FindIfPolicy for FindIf tuning.
  • Tests
    • Updated tuning/compile-time checks to validate FindIfPolicy instead of the older policy type.

Walkthrough

Renames the find tuning policy from FindPolicy to FindIfPolicy across tuning, dispatch, docs, and tests, and updates the corresponding return types, type checks, and formatted policy output.

Changes

FindPolicy to FindIfPolicy rename

Layer / File(s) Summary
Tuning policy struct rename and selector wiring
cub/cub/device/dispatch/tuning/tuning_find.cuh
FindPolicy struct, its equality/inequality and stream operators, find_policy_selector concept, and policy_selector/policy_selector_from_types functors are updated to use FindIfPolicy.
Dispatch usage of renamed policy
cub/cub/device/dispatch/dispatch_find.cuh, cub/cub/device/device_find.cuh
find_kernel's compile-time policy and dispatch's active_policy variable now use FindIfPolicy; a doc comment is corrected to reference FindIfPolicy.
Test updates for renamed policy
cub/test/catch2_test_device_find_env.cu, cub/test/catch2_test_device_find_env_api.cu
Tuning functors and static policy validation tests now use and check cub::FindIfPolicy instead of cub::FindPolicy, including the renamed test case.

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

@bernhardmgruber bernhardmgruber mentioned this pull request Jul 2, 2026
17 tasks done
@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber enabled auto-merge (squash) July 3, 2026 10:09
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 36m: Pass: 100%/287 | Total: 12d 13h | Max: 2h 32m | Hits: 20%/963538

See results here.

@bernhardmgruber
bernhardmgruber merged commit 82c4220 into NVIDIA:main Jul 3, 2026
304 of 305 checks passed
@bernhardmgruber
bernhardmgruber deleted the rename_find_policy branch July 3, 2026 13:28
@coderabbitai coderabbitai Bot mentioned this pull request Jul 5, 2026
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