Annotate cuda::detail::stable_sort & cuda::detail::stable_sort_by_key with __host__ __device__
Test thrust::sort & thrust::sort_by_key with thrust::device in __device__ functions.