Test tabulate with thrust::device in __device__ code.