X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/blobdiff_plain/d306a40ce803ddfa0d555c5c9f72989e89f96dec..3991da6297471c9035632fb841e0490022b833a0:/code.c diff --git a/code.c b/code.c index 671d23d..cb93014 100644 --- a/code.c +++ b/code.c @@ -1,4 +1,5 @@ //Normal version of the Ehrlich-Aberth method +__device__ cuDoubleComplex FirstH_EA(int i, cuDoubleComplex *Z) { cuDoubleComplex result; @@ -33,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; @@ -74,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