changing variables names in reduce kernel for cuda backend