updateParams_kernel done.