Skip to content

Final passthrough for all env APIs #8175

Closed

Description

@gonidelis

After closing epic #5635 we should do a final pass on all overloads to double verify the following:

  1. Each non-env overload has a corresponding env overload
  2. The documentation for all env-overloads renders correctly
  3. The documentation for all env-overloads follows a consistent style for the description of the environment parameter, code example, etc.
  4. The env-overload docs should have the same information as their non-env counterparts
  5. The versionadded comments in the documentation reflect the ship vehicle
  6. The constraints on all env overloads (enable_ifs) are as strict as necessary to resolve any ambiguities
  7. Verify where we need a stream.sync() before any REQUIRES(keys = expected)
  8. Move default environment tests in a separate api test file use tab-set-code like block-radix-sort sphynx examples. 3 tabs: default, custom stream, custom env
  9. Use stream_ref explicitly as a last argument in env_api tests and not through an environment wrap as we want to show to the users that we can pass a stream_ref directly.
  10. literalinclude code snippets in the docs need the full path ../../../cub/test/<...>. Check that they appear in the generated docs.
  11. Make sure docs are not breaking with the typename EnvT = ::cuda::std::execution::env specialization (either wrap it with _DOXYGEN_INVOKED or merge Doxyfiles so they can resolve references intra-CCCL)
  12. The offset type (a templated parameter or a fixed integral value) of the env-overload is the same as the non-env overload.

Progress

  • cub::DeviceAdjacentDifference
  • cub::DeviceCopy
  • cub::DeviceFind
  • cub::DeviceFor
  • cub::DeviceHistogram
  • cub::DeviceMemcpy
  • cub::DeviceMerge
  • cub::DeviceMergeSort
  • cub::DevicePartition
  • cub::DeviceRadixSort
  • cub::DeviceReduce
  • cub::DeviceRunLengthEncode
  • cub::DeviceScan
  • cub::DeviceSegmentedRadixSort
  • cub::DeviceSegmentedReduce
  • cub::DeviceSegmentedScan
  • cub::DeviceSegmentedSort
  • cub::DeviceSelect
  • cub::DeviceTopK
  • cub::DeviceTransform

Activity

  1. self-assigned this
    on Mar 25, 2026
  2. moved this from Todo to In Progress in CCCLon May 5, 2026
  3. moved this from In Progress to In Review in CCCLon May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions