Replies: 0 comments 1 reply
-
|
Hello @zlwu92! Unfortunately, our segmented sort facilities do not support comparison operators. That's because segmented sort relies on radix sort in the cases of large segments and a small number of segments (radix sort is not comparison based). Nonetheless, if your weights are of arithmetic type, you could use In case you need a non-trivial comparison operator, you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a device array (use cudaMalloc), int* nodelist[], and another device array (use cudaMalloc), int* weight[]...
I want to use cub::DeviceSegmentedSort::SortKeys to sort nodeslit[], but I want to define a compare functor that need to use the weight[]..., can I do this?
Beta Was this translation helpful? Give feedback.
All reactions