You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: courses/01_beginners/main.tex
+26-8Lines changed: 26 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1380,7 +1380,7 @@ \section{Basic concepts of Kokkos}
1380
1380
1381
1381
\begin{itemize}
1382
1382
\item\texttt{ExecutionSpace} is an optional template parameter that specifies the execution space, by default the execution space is \texttt{DefaultExecutionSpace}.
1383
-
\item\texttt{start\_index} and \texttt{end\_index} are the beginning and end of the loop
1383
+
\item\texttt{start\_index} and \texttt{end\_index} are the beginning and the end of the loop
1384
1384
\end{itemize}
1385
1385
1386
1386
\small
@@ -1469,6 +1469,24 @@ \section{Basic concepts of Kokkos}
@@ -1523,7 +1541,7 @@ \section{Basic concepts of Kokkos}
1523
1541
1524
1542
\begin{itemize}
1525
1543
\item Parallel reduction is the second loop pattern provided by Kokkos: \highlight{Kokkos::parallel\_reduce}
1526
-
\item It is often used to compute from an array a single value (sum, max, min, etc.)
1544
+
\item It is often used to compute a single value from an array (sum, max, min, etc.)
1527
1545
\item It works like the \texttt{parallel\_for} loop pattern but with an additional argument: the reducer operation to perform \highlight{Kokkos::Reducer\_op<type>}
1528
1546
\item\texttt{KOKKOS\_LAMBDA} also has an additional argument: a reference to the local result
1529
1547
\end{itemize}
@@ -1588,11 +1606,11 @@ \section{Basic concepts of Kokkos}
1588
1606
1589
1607
\footnotesize
1590
1608
\begin{minted}{C++}
1591
-
Kokkos::parallel_reduce("my_reduction", N,
1592
-
KOKKOS_LAMBDA(int i, double& local_result) {
1593
-
local_result += A(i);
1594
-
}, result);
1595
-
\end{minted}
1609
+
Kokkos::parallel_reduce("my_reduction", N,
1610
+
KOKKOS_LAMBDA(int i, double& local_result) {
1611
+
local_result += A(i);
1612
+
}, result);
1613
+
\end{minted}
1596
1614
1597
1615
\end{frame}
1598
1616
@@ -1663,7 +1681,7 @@ \section{Basic concepts of Kokkos}
1663
1681
\end{itemize}
1664
1682
1665
1683
\begin{block}{}
1666
-
Go to the exercise \texttt{06\_parallel\_reduce} and follow the instructions in the README file
1684
+
Go to the exercise \href{https://github.com/CExA-project/cexa-kokkos-tutorials/tree/main/exercises/06_parallel_reduce}{06\_parallel\_reduce} and follow the instructions in the README file
0 commit comments