a workaround not to go through gpusort.c; that is still under construction.