Repository navigation
[CUB] Refactor DeviceCopy to always take an environment - #9416
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe PR converts ChangesDeviceCopy environment-based API standardization
Possibly related PRs
Suggested reviewers
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
cub/cub/device/device_copy.cuh (1)
314-320:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winimportant:
@param[in] streamis stale here. Line 335 replaced the stream parameter withconst EnvT& env, so the generated API docs now describe a removed parameter and the new one in the same overload. As per coding guidelines, Doxygen@paramdescriptions must accurately reflect the current functionality.Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 9b1775a1-0b9f-41dd-a733-7f7a930d89ff
📒 Files selected for processing (7)
cub/cub/detail/env_dispatch.cuhcub/cub/device/device_copy.cuhcub/cub/device/device_find.cuhcub/test/catch2_test_device_copy_batched.cucub/test/catch2_test_device_copy_mdspan.cucub/test/catch2_test_device_find_env.culibcudacxx/include/cuda/std/__pstl/cuda/find_if.h
61979f9 to
a3bb2f3
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cub/cub/device/device_copy.cuh (1)
336-354: 💤 Low valuesuggestion:
d_temp_storageandtemp_storage_bytesare unused whend_temp_storage != nullptr. Line 354 callsdetail::copy_mdspan::copy(mdspan_in, mdspan_out, env)without forwarding the storage parameters. The user-provided memory is effectively ignored.If mdspan copy truly requires no temp storage, consider documenting this in the Doxygen (e.g., "Note: This operation requires minimal temporary storage (1 byte) which is not actually used.") to avoid confusing users who allocate and provide storage expecting it to be utilized.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 8dd691a0-c710-49d1-9020-8315e4e19f81
📒 Files selected for processing (3)
cub/cub/device/device_copy.cuhcub/test/catch2_test_device_copy_batched.cucub/test/catch2_test_device_copy_mdspan.cu
🚧 Files skipped from review as they are similar to previous changes (1)
- cub/test/catch2_test_device_copy_batched.cu
This comment has been minimized.
This comment has been minimized.
152d45c to
881ee39
Compare
This comment has been minimized.
This comment has been minimized.
881ee39 to
ff046fd
Compare
This comment has been minimized.
This comment has been minimized.
ff046fd to
6c39771
Compare
This comment has been minimized.
This comment has been minimized.
846077b to
1871a1e
Compare
This comment has been minimized.
This comment has been minimized.
We want to be able to pass tunings even to the APIs that currently only take a stream. Refactor so that we can pass an arbitrary environment to those APIs that take user provided memory
1871a1e to
57b1aec
Compare
🥳 CI Workflow Results🟩 Finished in 7h 02m: Pass: 100%/287 | Total: 12d 21h | Max: 2h 38m | Hits: 20%/963543See results here. |
We want to be able to pass tunings even to the APIs that currently only take a stream.
Refactor so that we can pass an arbitrary environment to those APIs that take user provided memory