Here you could find the code for Sorting data in parallel CPU vs GPU, for more informations visit the project webpage:
http://solarianprogrammer.com/2013/02/04/sorting-data-in-parallel-cpu-gpu/
You could use this program under the terms of GPL v3, for more details see:
http://www.gnu.org/copyleft/gpl.html
Copyright 2012 Sol from www.solarianprogrammer.com
The following were run on a Xeon E5-2630 with 12 threads (HyperThreading enabled) on the CPU side, and an Nvidia Tesla K20c for the GPU.