-cublas function \texttt{cublasSetVector}. This function has several arguments. More
-precisely, the first argument represents the number of elements to transfer, the
-second arguments is the size of each element, the third element represents the
-source of the array to transfer (in the GPU), the fourth is an offset between
-each element of the source (usually this value is set to 1), the fifth is the
-destination (in the GPU) and the last is an offset between each element of the
-destination. Then we call the kernel \texttt{addition} which computes the sum of
-all elements of arrays $A$ and $B$. The \texttt{inverse} kernel is called twice,
-once to inverse elements of array $C$ and once for $A$. Finally, we call the
-function \texttt{cublasDdot} which computes the dot product of two vectors. To
-use this routine, we must specify the handle initialized by Cuda, the number of
-elements to consider, then each vector is followed by the offset between every
-element. After the GPU computation, it is possible to check that both
-computation produce the same result.
-
-\lstinputlisting[label=ch2:lst:ex2,caption=A simple example with cublas]{Chapters/chapter2/ex2.cu}
+CUBLAS function \texttt{cublasSetVector}. This function has several
+arguments. More precisely, the first argument represents the number of elements
+to transfer, the second arguments is the size of each element, the third element
+represents the source of the array to transfer (in the GPU), the fourth is an
+offset between each element of the source (usually this value is set to 1), the
+fifth is the destination (in the GPU), and the last is an offset between each
+element of the destination. Then we call the kernel \texttt{addition} which
+computes the sum of all elements of arrays $A$ and $B$. The \texttt{inverse}
+kernel is called twice, once to inverse elements of array $C$ and once for
+$A$. Finally, we call the function \texttt{cublasDdot} which computes the dot
+product of two vectors. To use this routine, we must specify the handle
+initialized by CUDA, the number of elements to consider, then each vector is
+followed by the offset between every element. After the GPU computation, it is
+possible to check that both computations produce the same result.
+
+\lstinputlisting[label=ch2:lst:ex2,caption=simple example with CUBLAS]{Chapters/chapter2/ex2.cu}