X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/kahina_paper2.git/blobdiff_plain/69d55feb2b51f636c37053419eb84aa9693e6775..5ef135713b197b04da59995ab1852503bb565bee:/maj.tex?ds=sidebyside diff --git a/maj.tex b/maj.tex index dd8b15e..49a7448 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]{code} -\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 operations on complex numbers +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$