Skip to content

Commit

Permalink
added a slide talking about GPU/CPU function forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
fythal committed Apr 14, 2016
1 parent ff8b169 commit 5b4044e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Documentation/FinalPresentation/Presentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
\usepackage{graphicx}
\usepackage[font={footnotesize}]{caption}
\usepackage{textcomp}
\usepackage{listings}
\newcommand{\textapprox}{\raisebox{0.5ex}{\texttildelow}}
\setcounter{tocdepth}{2}
\setbeamertemplate{navigation symbols}{}
Expand Down Expand Up @@ -112,6 +113,29 @@ \subsection{Easily Enable/Disable GPU Acceleration}
\end{itemize}
\end{frame}

\defverbatim[colored]\lstI{
\begin{lstlisting}[language=C++,basicstyle=\ttfamily,keywordstyle=\color{red}]
inline G4double GetY(G4double x)
{
#if GEANT4_ENABLE_CUDA
return cudaVector->GetXsec(x);
#else
return GetXsec(x);
#endif
}
\end{lstlisting}
}


\begin{frame}
\frametitle{Implementation}
\begin{itemize}
\item Header forwards function calls to GPU or CPU Implementation
\item This decision is made at compile time.
\end{itemize}
\lstI
\end{frame}

\begin{frame}
\frametitle{Accelerating Module on GPU}
\begin{itemize}
Expand Down

0 comments on commit 5b4044e

Please sign in to comment.