Repository navigation
Description
Depends on:
- [EPIC] Internal Tuning API for CUB algorithms #7165
- Add
<cuda/execution>umbrella and partial headers #8743 - [EPIC] Consistently use the new CUB tuning APIs internally #7464
We should first start with a solid design and write it down, and also ensure the documentation is focused on the user providing tunings, instead of our (internal) tuning process:
- Document public tuning of CUB algorithms #8593
- Design the API surface of the CUB tuning API #7671
- Streamline the tuning documentation #8731
- Tuning API publication cleanup work #9378
For each CUB algorithm, if the tuning API has been implemented internally, we are ready to make it publicly accessible:
- Add a test (or verify there already is one) for each CUB algorithm overload specifying a custom tuning.
- Enable public access to tuning properties for CUB environment API overloads.
- Add or update documentation and examples on how the public tuning API works
- Deprecated all public CUB dispatchers and agent policies
Table of all tuning policies and their names: https://docs.google.com/spreadsheets/d/1EUdwvmv2n7-WRp30-lt7CQxyu8r6atdfJJx3O6Pf1Ag
Current prompt:
Look at commit fc452a9cb3 which makes the tuning policy for DeviceAdjacentDifference public.
Look at commit 5a9ea633bf which makes the tuning policy for DeviceMergeSort public.
Look at commit 2795a7fdc3 which also deprecates the corresponding agent policies.
Look at commit 979ec0b51c which makes the tuning policy for DeviceFind public.
Look at commit 4be2ca2ac3 which makes the tuning policy for DeviceTransform public.
Please repeat the same logic for DeviceXXX.
The `algorithm_policy` in the `tuning_algorithm.cuh` (the policy struct), and all transitively used types by data members, should be moved to the public namespace and renamed to CamelCase.
The policy structs should remain in the `tuning_*.cuh` header.
Propagate this rename through all places, including:
* Benchmarks (in cub/benchmark/bench)
* Agents, if they exist (in cub/cub/agent/**)
* Any kernels, usually found in a file `kernel_algorithm.cuh` or sometimes in `dispatch_algorithm.cuh`
* Any unit tests
Any `delay_constructor` data member of a tuning policy should be renamed to `lookback_delay`.
Ensure that the operator== and operator!= of all policy structs have [[nodiscard]] and noexcept.
Add a new test for the policy struct that checks for:
semiregular, is_aggregate, aggregate init, designated initializer, and constexpr comparison with == and !=.
Also, extend the documentation at the Device* struct level.
Add an API example, that is provided by a new unit test (*_env_api.cu) file,
showing how a custom policy selector can be passed to the API.
Then, deprecate the cub::Dispatch* struct of that algorithm, if there is one,
and add a `#define CCCL_IGNORE_DEPRECATED_API` into the `catch2_test_*_custom_policy_hub.cu` test.
Also deprecate the public Agent*Policy struct, if there is one, by moving it to a detail namespace and renaming it to snake_case.
Put a deprecated alias with the old name in the public cub namespace.
Rename all uses of the struct to snake_case, except the one in the `catch2_test_*_custom_policy_hub.cu` test.
Finally, generate a summary table as markdown listing all new public API entities.
The columns should be Entity and enumerators/data members.
Format the second column so there is a line break after each entity.
The markdown should be raw and copyable, so I can paste it into a GitHub comment.
Add this heading on top of the table `### New public entities`.
Finally, in CCCL 4.0, we can remove all public dispatchers, which is tracked by #7466.
Intentionally postponed:
Sub-issues
Collapse Sub-issuesSub-issues
Loading 28 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
cub::DeviceReducetuning API #7577[-]Make the new CUB tuning API public[/-][+][EPIC] Make the new CUB tuning API public[/+]cub::DeviceAdjacentDifferencetuning API #8567cub::DeviceCopytuning API #8568cub::DeviceFind::FindIftuning API #8569cub::DeviceFortuning API #8570cub::DeviceHistogramtuning API #8571cub::DeviceMemcpytuning API #8572cub::DeviceMergetuning API #8573cub::DeviceMergeSorttuning API #857410 remaining items
cub::DeviceTransformtuning API #8585cub::DeviceScan::*ByKeytuning API #8852cub::DeviceSelect::UniqueByKeytuning API #9242cub::DevicePartitionthree-way tuning API #9314cub::DeviceSelect::UniqueByKeytuning API #9315cub::DeviceReduce::ReduceByKeyandcub::DeviceRunLengthEncode::Encodetuning API #9326cub::DeviceSelect::UniqueByKeytuning API #9315cub::DeviceTopKtuning API #8584cub::DeviceFind::*BoundSortedValuestuning API #9687