What is a good sorting algorithm on CUDA?

后端 未结 4 899
南笙
南笙 2021-02-04 13:09

I have an array of struct and I need to sort this array according to a property of the struct (N). The object looks like this:

 struct OBJ
 { 
   int N; //sort a         


        
4条回答
  •  自闭症患者
    2021-02-04 13:19

    Yes I would totally agree, the overhead of sorting small arrays (<5k elements) kills the possible speedup you will achieve with a "fine-tuned" parallel sorting algorithm implemented in CUDA. I would prefer CPU based sorting for such a small size...

提交回复
热议问题