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