1 //kernel to test the convergence of roots
3 void TestConvergence_kernel(int size,cuDoubleComplex *Z,
4 cuDoubleComplex *ZPrec,double *Error)
5 { int i= blockIdx.x*blockDim.x+ threadIdx.x;
8 d_Error[i]=cuCmodule(cuCdiv(cuCsub(d_Z[i],d_ZPrec[i]), d_Z[i]));