Test is_sorted with thrust::seq in __device__ code.