X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/blobdiff_plain/5ef135713b197b04da59995ab1852503bb565bee..3991da6297471c9035632fb841e0490022b833a0:/code.c diff --git a/code.c b/code.c index d681fa0..cb93014 100644 --- a/code.c +++ b/code.c @@ -1,8 +1,5 @@ - - - - //Normal version of the Ehrlich-Aberth method +__device__ cuDoubleComplex FirstH_EA(int i, cuDoubleComplex *Z) { cuDoubleComplex result; @@ -37,6 +34,7 @@ cuDoubleComplex FirstH_EA(int i, cuDoubleComplex *Z) { //Log Exp version of the Ehrlich-Aberth method +__device__ cuDoubleComplex NewH_EA(int i, cuDoubleComplex *Z) { cuDoubleComplex result; @@ -78,6 +76,7 @@ cuDoubleComplex NewH_EA(int i, cuDoubleComplex *Z) { //kernels to update a root i +__global__ cuDoubleComplex H_EA(int i, cuDoubleComplex *Z) { cuDoubleComplex c; //if the root needs to be updated