Test the key/value scan algorithms with thrust::device in __device__ code.