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
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.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is this a duplicate?
Area
CUB
Is your feature request related to a problem? Please describe.
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 includingcub::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.
Additional context
No response
The text was updated successfully, but these errors were encountered: