Skip to content

Commit 3bd4cbc

Browse files
authored
Merge pull request #177 from rgayatri23/update-module1-kokkos-version-requirement
Module 1: use generic Kokkos version placeholder in build slides
2 parents 6664b3e + 8fadd96 commit 3bd4cbc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Content/Presentations/sections/Section_Building.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@
7474
cmake_minimum_required(VERSION 3.22)
7575
project(MyProject CXX)
7676

77-
find_package(Kokkos 4.2 REQUIRED CONFIG) # Find Kokkos version 4.2 or later
77+
find_package(Kokkos X.Y REQUIRED CONFIG) # Replace X.Y with your minimum required Kokkos version
7878

7979
add_executable(HelloKokkos HelloKokkos.cpp)
8080
target_link_libraries(HelloKokkos PRIVATE Kokkos::kokkos)
8181
\end{minted}
8282

83+
\vspace{1eM}
84+
{\scriptsize See the \href{https://kokkos.org/kokkos-core-wiki/get-started/requirements.html}{Kokkos documentation} for the minimum supported compilers and hardware for each release.}
85+
8386
\vspace{2eM}
8487
\textbf{How do I control cmake's search procedure?}
8588

@@ -331,7 +334,7 @@
331334
\item Step 1: Declare dependency on specific version of kokkos (4.x or develop)
332335
\begin{shell}
333336
class myLib(CMakePackage):
334-
depends_on('kokkos@4.2')
337+
depends_on('kokkos@X.Y') # Replace X.Y with your minimum required Kokkos version
335338
\end{shell}
336339
\item Step 2: Add build rule pointing to Spack-installed Kokkos and same C\texttt{++} compiler Kokkos uses
337340
\begin{shell}

0 commit comments

Comments
 (0)