main

Because we identified vec1, vec2 and sum as input and output, these will be assumed to exist on the CPU and will not be allocated anymore (on the host). The main-function will therefore be responsible for reading the input from a file, and passing pointers to the input and their size to the process member.


\begin{lstlisting}
/* examplealgorithm_main.cc */
\par
...



Joren Heit 2013-12-17