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
As of #414 we use common value type of offset begin / end iterators as offset type in segmented reduce. Incorrect use of API is hard to diagnose. For instance, user can pass offset iterator with float as its value type. Float is not expected on the implementation side of segmented reduce, leading to many errors that are hard to associate with API misuse.
Is this a duplicate?
Type of Bug
Compile-time Error
Component
CUB
Describe the bug
As of #414 we use common value type of offset begin / end iterators as offset type in segmented reduce. Incorrect use of API is hard to diagnose. For instance, user can pass offset iterator with
float
as its value type. Float is not expected on the implementation side of segmented reduce, leading to many errors that are hard to associate with API misuse.How to Reproduce
Expected behavior
We should use combination of SFINAE and static asserts like we do in device radix sort to improve error reporting.
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: