From: couturie Date: Sat, 30 Apr 2016 08:07:58 +0000 (+0200) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/commitdiff_plain/3991da6297471c9035632fb841e0490022b833a0 new --- 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 diff --git a/maj.tex b/maj.tex index 262d53a..ef19009 100644 --- a/maj.tex +++ b/maj.tex @@ -327,7 +327,9 @@ Copy $P$, $P'$ and $Z$ from CPU to GPU\; Copy $Z$ from GPU to CPU\; \end{algorithm} -Listing~\ref{lst:01} shows the second kernel code. As can be seen this +Listing~\ref{lst:01} shows the a simplified version of second kernel +code (some parameters in the kernels have been simplified in order to +increase the readability). As can be seen this kernel calls multiple kernels, all the kernals for complex numbers and kernels for the evaluation of a polynomial are not detailed.