testing residuals on GPU