X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/blobdiff_plain/9a2e466ad0fe6f247f15f228b5b76f5854ccb0ca..77331796ab2b89292c0b0480e3dba5ce57178dd7:/maj.tex diff --git a/maj.tex b/maj.tex index c9e308c..262d53a 100644 --- a/maj.tex +++ b/maj.tex @@ -9,7 +9,8 @@ \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]{% @@ -326,13 +327,20 @@ Copy $P$, $P'$ and $Z$ from CPU to GPU\; 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$