Skip to content

Commit 8721f3e

Browse files
committed
ci: trilinos integration test
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
1 parent 4840e90 commit 8721f3e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Linux-Trilinos-Integration
2+
3+
# only run most recent workflow in branch
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
on:
9+
pull_request:
10+
paths-ignore:
11+
- README.md
12+
- 'docs/**'
13+
types: [ opened, reopened, synchronize ]
14+
15+
jobs:
16+
Trilinos-develop-OpenMPI:
17+
env:
18+
TRILINOS_BUILD: ${{ github.workspace }}/trilinos-build
19+
TRILINOS_INSTALL: ${{ github.workspace }}/trilinos-install
20+
COMM_SRC: ${{ github.workspace }}
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 60
23+
steps:
24+
- name: Install MPI
25+
run: |
26+
sudo apt-get update && sudo apt-get install -y libopenmpi-dev openmpi-bin cmake
27+
which mpirun
28+
mpirun --version
29+
which mpicxx
30+
mpicxx --version
31+
- name: Install openblas
32+
run: sudo apt-get install libopenblas-dev
33+
- name: Check out repository code
34+
uses: actions/checkout@v4
35+
- name: Check out Trilinos
36+
uses: actions/checkout@v4
37+
with:
38+
repository: trilinos/Trilinos
39+
fetch-depth: 1
40+
ref: develop # FIXME: master, once master has support
41+
path: trilinos
42+
- name: symlink kokkos-comm
43+
run: |
44+
ln -s "${{ github.workspace }}" trilinos/packages/kokkos-comm
45+
- name: Configure Trilinos
46+
run: >
47+
cmake -S trilinos -B "$TRILINOS_BUILD" \
48+
-DCMAKE_INSTALL_PREFIX="$TRILINOS_INSTALL" \
49+
-DTPL_ENABLE_MPI=ON \
50+
-DTrilinos_ENABLE_KokkosComm=ON \
51+
-DTrilinos_ENABLE_Tpetra=ON \
52+
-DTpetra_ENABLE_TESTS=ON
53+
- name: Build Trilinos
54+
run: cmake --build "$TRILINOS_BUILD" --parallel $(nproc)
55+
- name: Test Exists
56+
run: "[ -f \"$TRILINOS_BUILD/packages/tpetra/core/test/KokkosComm/TpetraCore_KokkosComm_include.exe\" ] || exit 1"
57+
- name: Install Trilinos
58+
run: cmake --build "$TRILINOS_BUILD" --target install

0 commit comments

Comments
 (0)