This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
cub::DeviceHistogram::HistogramEven: Incorrect result with integer levels and samples #489
Labels
Milestone
The problem appears when
upper_level - lower_level
is not exactly divisible by number ofbins
. Appears in 1.16 and in #487 too.Reproduction: the program as is provides [1, 0, 4, 1, 0, 0, 2] as a histogram, but correct one (obtainable by switching to
using T = float;
) is [1, 5, 0, 2, 1, 0, 0].The text was updated successfully, but these errors were encountered: