Generalized gradient computation for n GPUs.