-
Is there a way to use a custom type with a custom equality operator as the key type for ReduceByKey? Implementing I'm particularly interested in a key simply composed of a small sequence of primitive types. Looks like this might be possible if I use a thrust zip_iterator as the KeyIterator? Another possible solution, it seems, is to modify the interface so I can pass in a custom equality operator to dispatch? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm pretty sure that |
Beta Was this translation helpful? Give feedback.
It turns out I needed
__device__ bool operator==(const CustomType& other) const {...}
(I was missing the lastconst
), which did the trick. Thank you! and sorry for wasting anyone's time.