Sorting by key > 10 integer sequences. with thrust

Posted by smilingbuddha on Stack Overflow See other posts from Stack Overflow or by smilingbuddha
Published on 2012-09-08T00:41:16Z Indexed on 2012/09/08 9:38 UTC
Read the original article Hit count: 234

Filed under:
|

I want to perform a sort_by_key where I have a single key-sequence and multiple value sequences.

One usually performs this with

sort_by_key(
             key, 
             key + N, 
             make_zip_iterator(
                                make_tuple(x1 , x2 , ...)
                               )
            )

However I want to perform a sort with > 10 sequences each of length N. Thrust does not support tuples of size >= 10. So is there a way around this ?

Of course one can keep a separate copy of the key vector and perform sorts on bunches of 10 sequences. But I would like to do everything in a single call.

© Stack Overflow or respective owner

Related posts about cuda

Related posts about thrust