Test is_partitioned with thrust::device in __device__ code.