From 750083bf8ef9359a7275f589eb1c6e2d3549559a Mon Sep 17 00:00:00 2001 From: zianekhodja Date: Sat, 16 Jan 2016 19:35:34 +0100 Subject: [PATCH] new algo 1 --- paper.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} -- 2.39.5