You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: cub::DeviceReduce tunings do not apply to real-world API calls #6576
The benchmarks for cub::DeviceReduce on which all tunings are based target cub::DispatchReduce (the dispatcher), and provided the input range's value type as accumulator type explicitly (the dispatcher has this know). This is not realistic, since a user cannot set the accumulator type the same way at the public API (the accumulator type is not exposed).
For example, reducing I8 over cuda::std::plus deduces accumulator type I32 (because cuda::std::plus{}(I8, I8) -> I32 due to promotion) at the public API, but the benchmark forces it to I8. This skews the MemBoundScaling of the tunings (which were gathered using an accumulator type of I8 but are now scaled to I32), leading to 20% regression for the same tuning when the public API is called (with deduced accum_t I32) over calling via the dispatcher (forced accum_t of I8).
The benchmarks for cub::DeviceReduce should be changed to test realistic workloads which cover uses of the public CUB API.
Activity
bernhardmgruber commentedon Apr 16, 2026
The benchmarks forcub::DeviceScanhave the same issue.Do not override accumulator type in reduce benchmarks (NVIDIA#8884)