Test minmax_element with thrust::device in __device__ code.