Add all_reduce support