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
[FEA]: Let block-algorithms take const arrays for input parameters #1296
does not compile because the interfaces by CUB take non-const arrays as input parameters. This prevents users from writing const-correct kernel functions using CUB block-scope algorithms. cub::BlockReduce::Sum is only one example. The same issue appears for basically all interfaces taking multiple input values as a C-style array including cub::StoreDirectBlocked and similar direct store functions.
Describe the solution you'd like
As confirmed by @gevtushenko in #1288, CUB's block-scope algorithms (in particular the overloads taking C arrays residing in registers or local memory) should take const-qualified arrays for input parameters.
Describe alternatives you've considered
Not writing const-correct kernel-functions can lead to bugs and makes code less readable.
Activity