1

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...

4

1 回答 1

1

您最好的选择是自己为您的特定架构/配置进行计时。

一旦你提供了两个实现的结果和代码,那么 SO 可以帮助发现一些性能改进。

于 2011-09-17T04:25:17.820 回答