Test swap_ranges with thrust::device in __device__ code.