Repository navigation
[CUB] Refactor DeviceSelect::Flagged to always take an environment - #9455
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
412d7d7 to
ddfaf0b
Compare
|
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 (3)
🚧 Files skipped from review as they are similar to previous changes (3)
OverviewThis PR refactors Key ChangesAPI Refactoring
Test CoverageAdded coverage in
Environment variants covered include: Downstream UpdatesUpdated
Metrics
Walkthrough
ChangesEnvironment-based dispatch for DeviceSelect::Flagged
Possibly related PRs
Suggested reviewers
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (3)
cub/test/catch2_test_device_select_flagged.cu (3)
233-251: ⚡ Quick winimportant: make stream propagation observable.
This helper uses
cudaDeviceSynchronize(), so thecudaStream_t,cuda::stream,cuda::stream_ref, andgpu.with(cuda::get_stream, stream)sections would still pass if env dispatch fell back to stream 0. Use a non-default/non-blocking stream and synchronize an event recorded on that stream before checking outputs.Also applies to: 257-293
233-251: ⚡ Quick winimportant: cover the in-place temp-storage overload.
The new helper only calls the out-of-place temp-storage signature. The in-place
Flagged(temp_storage, bytes, d_data, flags, d_num_selected_out, num_items, env)implementation changed separately, so add a user-provided-memory env case for it too.
276-293: ⚡ Quick winimportant: add a tuning-selector case.
These sections pass streams/default policies, but none attach a custom tuning policy selector, so
dispatch_with_env_and_tuningcould ignore tuning and this test would still pass. Add one env/policy with an observably selected test policy selector.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: e1bb85c4-0a24-473b-b862-a4a895712ad8
📒 Files selected for processing (3)
cub/cub/device/device_select.cuhcub/test/catch2_test_device_select_flagged.culibcudacxx/include/cuda/std/__pstl/cuda/shift_left.h
This comment has been minimized.
This comment has been minimized.
We want to be able to pass tunings to the APIs that take user provided memory.
ddfaf0b to
c37c1c1
Compare
🥳 CI Workflow Results🟩 Finished in 2h 27m: Pass: 100%/343 | Total: 13d 13h | Max: 2h 25m | Hits: 37%/1298826See results here. |
Description
closes
Checklist