From: zianekhodja Date: Sat, 16 Jan 2016 18:35:34 +0000 (+0100) Subject: new algo 1 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/commitdiff_plain/750083bf8ef9359a7275f589eb1c6e2d3549559a?ds=sidebyside;hp=--cc new algo 1 --- 750083bf8ef9359a7275f589eb1c6e2d3549559a diff --git a/paper.tex b/paper.tex index 7237cf6..477f14f 100644 --- a/paper.tex +++ b/paper.tex @@ -781,9 +781,9 @@ Initialize the polynomial $P$ and its derivative $P'$\; Set the initial values of vector $Z$\; Copy $P$, $P'$ and $Z$ from the CPU memory to the GPU memory\; \While{\emph{not convergence}}{ - $Z_{prev}$ = Kernel\_Save($Z$)\; - $Z$ = Kernel\_Update($P,P',Z$)\; - Kernel\_Test\_Convergence($Z,Z_{prev},\epsilon$)\; + $Z_{prev}$ = Kernel\_Save($Z,n$)\; + $Z$ = Kernel\_Update($P,P',Z,n$)\; + Kernel\_Test\_Convergence($Z,Z_{prev},n,\epsilon$)\; } Copy $Z$ from the GPU memory to the CPU memory\; \label{alg1-cuda}