Allreduce input pointers made const.