Question

I have an array of structures and I want to sort them. I have been using Thrust::sort and it works well. Then people tell me CUDPP is faster in sorting but I found it's not possible to sort structure arrays straight forward.

Here they have explained how to sort structure arrays with CUDPP but it sounds resource consuming.

Do you have any suggestion on faster doing the sort? Any other way you do this job?

P.S. my structure is simply some numbers...

Was it helpful?

Solution

Your best bet is to do the timings yourself for your specific architecture / configuration.

Once you provide the results and the code of the two implementations then SO can help spot some performance improvements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top