Skip to content

Commit 433ca5e

Browse files
committed
Correct order of slides after merge + correct display for handout
1 parent d70260c commit 433ca5e

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

courses/01_beginners/main.tex

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -977,31 +977,6 @@ \subsection{Compilation}
977977
\end{columns}
978978
\end{frame}
979979
980-
\begin{frame}[fragile]{Copy and assignation}
981-
\begin{columns}
982-
\begin{column}{0.6\linewidth}
983-
\begin{minted}{C++}
984-
View<int*[5]> a("a", N), b("b", M);
985-
a = b;
986-
View<int**> c(b);
987-
988-
a(0, 2) = 1;
989-
b(0, 2) = 2;
990-
c(0, 2) = 3;
991-
992-
std::cout << a(0, 2) << std::endl;
993-
\end{minted}
994-
\end{column}
995-
\begin{column}{0.4\linewidth}
996-
\structure{Question:} What gets printed?
997-
998-
\pause
999-
1000-
\structure{Answer:} 3
1001-
\end{column}
1002-
\end{columns}
1003-
\end{frame}
1004-
1005980
% _____________________________________________________________________________
1006981
1007982
\begin{frame}{Where are a View data stored?}
@@ -1130,6 +1105,33 @@ \subsection{Compilation}
11301105
11311106
% _____________________________________________________________________________
11321107
1108+
\begin{frame}[fragile]{Copy and assignation}
1109+
\begin{columns}
1110+
\begin{column}{0.6\linewidth}
1111+
\begin{minted}{C++}
1112+
View<int*[5]> a("a", N), b("b", M);
1113+
a = b;
1114+
View<int**> c(b);
1115+
1116+
a(0, 2) = 1;
1117+
b(0, 2) = 2;
1118+
c(0, 2) = 3;
1119+
1120+
std::cout << a(0, 2) << std::endl;
1121+
\end{minted}
1122+
\end{column}
1123+
\begin{column}{0.4\linewidth}
1124+
\structure{Question:} What gets printed?
1125+
1126+
\pause
1127+
1128+
\structure{Answer:} 3
1129+
\end{column}
1130+
\end{columns}
1131+
\end{frame}
1132+
1133+
% _____________________________________________________________________________
1134+
11331135
\begin{exerciseframe}{Exercise 2: How to use and manage Kokkos Views}
11341136
\begin{columns}
11351137
\begin{column}{0.5\linewidth}
@@ -1154,7 +1156,7 @@ \subsection{Compilation}
11541156
11551157
\begin{frame}{How to access data living on the Device from the Host?}
11561158
\begin{center}
1157-
\includegraphics<1>[width=0.9\textwidth]{device_memory_access_1.png}
1159+
\includegraphics<1|handout:0>[width=0.9\textwidth]{device_memory_access_1.png}
11581160
\includegraphics<2>[width=0.9\textwidth]{device_memory_access_2.png}
11591161
\end{center}
11601162

0 commit comments

Comments
 (0)