From 4e3eee3916d4c70e5277a326726c6f7e254b8775 Mon Sep 17 00:00:00 2001 From: Arnaud Bergeron Date: Wed, 28 Oct 2015 13:24:34 -0400 Subject: [PATCH] Replace the make_thunk section with a section that introduces Op params. --- advanced.tex | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/advanced.tex b/advanced.tex index ec7680c..839d6f9 100644 --- a/advanced.tex +++ b/advanced.tex @@ -351,23 +351,43 @@ \section{How to Make an Op (C)} \end{itemize} \end{frame} -\section{How to Make a Complex Op} +\section{Op Params} \begin{frame}[plain]{} \begin{center} -\Huge How to Make a Complex Op +\Huge Op Params \end{center} \end{frame} -\begin{frame}{\code{make_thunk}} -\lstinputlisting[linerange={12-14}]{thunk.py} +\begin{frame}{Purpose} \begin{itemize} -\item Define instead of \code{perform} or \code{c_code} -\item Gives total freedom on how the computation is performed -\item More complex to use and generally not needed +\item Used to pass information to the C code +\item Can reduce the amount of compiled C code +\item Required for things that can change from one script run to the other. \end{itemize} \end{frame} +\begin{frame}{Usage} +\lstinputlisting{params.py} +\end{frame} + +%\section{How to Make a Complex Op} + +%\begin{frame}[plain]{} +%\begin{center} +%\Huge How to Make a Complex Op +%\end{center} +%\end{frame} + +%\begin{frame}{\code{make_thunk}} +%\lstinputlisting[linerange={12-14}]{thunk.py} +%\begin{itemize} +%\item Define instead of \code{perform} or \code{c_code} +%\item Gives total freedom on how the computation is performed +%\item More complex to use and generally not needed +%\end{itemize} +%\end{frame} + \section{Optimizations} \begin{frame}[plain]{}