\usepackage[textsize=footnotesize]{todonotes}
\usepackage{amsmath}
\usepackage{amssymb}
-\usepackage{float}
+\usepackage{float}
+\usepackage{listings}
\newcommand{\LZK}[2][inline]{%
\todo[color=red!10,#1]{\sffamily\textbf{LZK:} #2}\xspace}
\newcommand{\RC}[2][inline]{%
Copy $Z$ from GPU to CPU\;
\end{algorithm}
-\RC{A revoir (c'est de la blague en l'état) : Figure~\ref{fig:00} shows the second kernel code}
-\begin{figure}[htbp]
-\centering
-\includegraphics[angle=+0,width=0.4\textwidth]{code1}
-\caption{The Kernel Update code}
-\label{fig:00}
-\end{figure}
+Listing~\ref{lst:01} shows the second kernel code. 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.
+
+\begin{footnotesize}
+\lstinputlisting[label=lst:01,caption=Kernels to update the roots]{code.c}
+\end{footnotesize}
+
+%\begin{figure}[htbp]
+%\centering
+%\includegraphics[angle=+0,width=0.4\textwidth]{code}
+%\caption{The Kernel Update code}
+%\label{fig:00}
+%\end{figure}
%We noticed that the code is executed by a large number of GPU threads organized as grid of to dimension (Number of block per grid (NbBlock), number of threads per block(Nbthread)), the Nbthread is fixed initially, the NbBlock is computed as fallow:
%$ NbBlocks= \frac{N+Nbthreads-1}{Nbthreads} where N: the number of root$