Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: Guarantee monotonic-increating temp_storage_bytes (for d_temp_storage) wrt num_items #569

Open
1 task done
akeley98NV opened this issue Oct 16, 2023 · 1 comment
Labels
feature request New feature or request.

Comments

@akeley98NV
Copy link

Is this a duplicate?

Area

CUB

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

For many of my algorithms I will be executing a series of cub functions with varying num_items values and it is cost-prohibitive to allocate d_temp_storage each time. I cannot predict ahead-of-time what num_items will be but I can guarantee a tight bound on the max value. I currently query temp_storage_bytes with this bound value and allocate a block of memory of the queried size to use for all subsequent cub functions. This works in practice but so far as I can tell, is not formally guaranteed to work.

Describe the solution you'd like

Guarantee that (for the same function and same template parameters), the output temp_storage_bytes value is a non-strict monotonic increasing function of num_items.

Describe alternatives you've considered

Nvidians: don't suggest workarounds and alternative solutions before reading internal discussion on Slack cdd-cub.

Additional context

No response

@akeley98NV akeley98NV added the feature request New feature or request. label Oct 16, 2023
@github-project-automation github-project-automation bot moved this to Todo in CCCL Oct 16, 2023
@github-actions
Copy link
Contributor

Hi @akeley98NV!

Thanks for submitting this issue - the CCCL team has been notified and we'll get back to you as soon as we can!
In the mean time, feel free to add any relevant information to this issue.

@github-actions github-actions bot added the needs triage Issues that require the team's attention label Oct 16, 2023
@alliepiper alliepiper removed the needs triage Issues that require the team's attention label Dec 6, 2023
@alliepiper alliepiper removed their assignment Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request.
Projects
Status: Todo
Development

No branches or pull requests

2 participants