Skip to content

Commit b455c52

Browse files
committed
docs: how to use as an external Trilinos package
Signed-off-by: Carl Pearson <[email protected]>
1 parent 2e11dfb commit b455c52

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

docs/dev/trilinos.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
******************************
2+
As a Trilinos external package
3+
******************************
4+
5+
Kokkos Comm can be used as an external package in Trilinos as of https://github.com/trilinos/Trilinos/pull/14135.
6+
7+
.. code-block:: console
8+
9+
# acquire trilinos
10+
git clone https://github.com/trilinos/Trilinos.git
11+
12+
# symlink kokkos-comm source into Trilinos
13+
ln -s kokkos-comm trilinos/packages/kokkos-comm
14+
15+
# Build Trilinos
16+
cmake -S trilinos -B "$TRILINOS_BUILD" \
17+
-DCMAKE_INSTALL_PREFIX="$TRILINOS_INSTALL" \
18+
-DTPL_ENABLE_MPI=ON \
19+
-DTrilinos_ENABLE_KokkosComm=ON \
20+
-DTrilinos_ENABLE_Tpetra=ON \
21+
-DTpetra_ENABLE_TESTS=ON
22+
23+
Look for something like the following in the Trilinos configure output:
24+
25+
.. code-block:: text
26+
...
27+
Final set of enabled top-level packages: Kokkos Teuchos KokkosKernels KokkosComm Tpetra 5
28+
...
29+
Final set of enabled external packages/TPLs: MPI BLAS LAPACK DLlib 4
30+
...

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Documentation Content
4848
dev/testing
4949
dev/mpi
5050
dev/docs
51+
dev/trilinos
5152

5253

5354
Indices and tables

0 commit comments

Comments
 (0)