Skip to content

Add environment overloads for DeviceHistogram::*#7967

Open
gonidelis wants to merge 4 commits intoNVIDIA:mainfrom
gonidelis:histogram_env
Open

Add environment overloads for DeviceHistogram::*#7967
gonidelis wants to merge 4 commits intoNVIDIA:mainfrom
gonidelis:histogram_env

Conversation

@gonidelis
Copy link
Member

@gonidelis gonidelis commented Mar 10, 2026

fixes #7542

Adds environment overloads for DeviceHistogram

Histogram reductions are always on integers. Integer addition is truly associative and commutative (no float ops) Hence, the order of additions doesn't matter. So histogram is always deterministic.

Question to the audience:
Should I take the liberty to guarantee gpu_to_gpu for DeviceHistogram? @bernhardmgruber @gevtushenko

I guess that may as well just include reporting it in the docs.

@gonidelis gonidelis requested a review from a team as a code owner March 10, 2026 03:12
@gonidelis gonidelis requested a review from pauleonix March 10, 2026 03:12
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 10, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Mar 10, 2026
@gonidelis gonidelis changed the title Histogram env Add environment overloads for DeviceHistogram::* Mar 10, 2026
@gonidelis gonidelis enabled auto-merge (squash) March 10, 2026 03:22
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 10m: Pass: 100%/249 | Total: 2d 13h | Max: 1h 00m | Hits: 98%/156447

See results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Add env-based API for cub::DeviceHistogram

1 participant