Skip to content

Commit

Permalink
added slide for copy to cpu if dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
fythal committed Apr 15, 2016
1 parent b6eba71 commit 2640fc4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Binary file modified Documentation/FinalPresentation/Presentation.pdf
Binary file not shown.
19 changes: 18 additions & 1 deletion Documentation/FinalPresentation/Presentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ \subsection{Easily Enable/Disable GPU Acceleration}
\begin{itemize}
\item Existing projects can use GPU acceleration without having to change any code
\item Flag during build phase enables/disables GPU acceleration
\item Interface remains the same\footnote{implementation 1 only}, acceleration happens ``invisibly''
\item Interface remains the same\footnote{implementation 1 only}, acceleration happens behind the scenes
\end{itemize}
\end{frame}

Expand Down Expand Up @@ -248,6 +248,23 @@ \subsection{Impl. 1: Existing Module in GPU Memory}
\end{center}
\end{frame}

\begin{frame}[fragile]
\frametitle{memcpy optimization}
\begin{itemize}
\item Keep track of which version of the data is most up-to-date
\item Only copy data when it has been modified
\end{itemize}
\begin{block}{CopyToCpuIfDirty}
\begin{lstlisting}
if(isDataDirtyHost){
cudaMemcpy(h_theData, d_theData, nEntries);
isDataDirtyHost = false;
}
\end{lstlisting}
\end{block}

\end{frame}

\subsubsection{Implementation of Select Methods on GPU}
\begin{frame}[fragile]
\frametitle{Impl. 1 -- \texttt{Times}}
Expand Down

0 comments on commit 2640fc4

Please sign in to comment.