CUDA acceleration for the solver iteration part