Annotate allocator_traits::max_size() with __host__ __device__.