Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Document in-place guarantees for histogram #494

Conversation

gevtushenko
Copy link
Collaborator

Histogram doesn't allow aliasing of the histogram and samples data. If d_samples is aliased with d_histogram, the algorithm will reset the aliased part of d_samples before reading it. If d_levels is aliased with d_histogram, the same will happen. Since levels and samples are readonly, it's safe to alias those.

@alliepiper alliepiper added this to the 2.0.0 milestone May 26, 2022
gevtushenko added a commit to gevtushenko/thrust that referenced this pull request May 26, 2022
@gevtushenko gevtushenko merged commit 4e4ea96 into NVIDIA:main May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants