Skip to content

[FEA]: Design Guarantees API for Segmented Problems #6620

Closed

Description

@gevtushenko

Is this a duplicate?

Area

CUB

Is your feature request related to a problem? Please describe.

As of #4877 we have requirements API. This interface allows user to make an algorithm guarantee something:

cuda::execution::require(cuda::execution::determinism::run_to_run);

In the example above, user requres run-to-run determinism and algorithm guarantees it.

On the implementation side, we sometimes need this relationship reversed. We want an algorithm to require something and user to guarantee that. For instance, we have multiple implementations of segmented reduction. Some implementations require max segment size to be less than a certain value. If we had an interface that allows user to guarantee max segment size, we'd be able to dispatch to optimal algorithm implementation.

Describe the solution you'd like

Design gaurantees API:

cuda::execution::guarantee(max seg size < 42);
  • Add cuda::execution::guarantee
  • Design max segment size guarantee
  • Leverage guarantees API to optimize segmented reduce

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. moved this from Todo to In Review in CCCLon Nov 18, 2025
  2. changed the issue type fromtoon Feb 3, 2026
  3. changed the title [-][FEA]: Design Guarantees API[/-] [+][FEA]: Design Guarantees API for Segmented Problems[/+] on Feb 5, 2026
  4. gevtushenko commented on Feb 5, 2026

    @gevtushenko
    CollaboratorAuthor

    Closing in favor of #7495

  5. moved this from In Review to Done in CCCLon Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions