-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (65 loc) · 2.91 KB
/
linux-install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Linux-Install
run-name: Linux-Install
on:
pull_request:
paths-ignore:
- README.md
- 'docs/**'
types: [ opened, reopened, synchronize ]
jobs:
Kokkos-master-OpenMPI:
env:
KOKKOS_SRC: ${{ github.workspace }}/_deps/kokkos
KOKKOS_BUILD: ${{ github.workspace }}/_deps/kokkos-build
KOKKOS_INSTALL: ${{ github.workspace }}/_deps/kokkos-install
COMM_SRC: ${{ github.workspace }}
COMM_BUILD: ${{ github.workspace }}/build
COMM_INSTALL: ${{ github.workspace }}/install
COMM_UNIT_TESTS_BUILD: ${{ github.workspace }}/unit-tests-build
COMM_PERF_TESTS_BUILD: ${{ github.workspace }}/perf-tests-build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install MPI
run: |
sudo apt-get update && sudo apt-get install -y libopenmpi-dev openmpi-bin cmake
which mpirun
mpirun --version
which mpicxx
mpicxx --version
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: ls ${{ github.workspace }}
- name: Build Kokkos
run: |
git clone https://github.com/kokkos/kokkos.git --branch master --depth 1 "$KOKKOS_SRC"
cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" -DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_OPENMP=ON
cmake --build "$KOKKOS_BUILD" --parallel $(nproc) -t install
- name: Configure KokkosComm
run: |
cmake -S "$COMM_SRC" -B "$COMM_BUILD" -DKokkos_ROOT="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DKokkosComm_ENABLE_TESTS=OFF -DKokkosComm_ENABLE_PERFTESTS=OFF -DCMAKE_INSTALL_PREFIX="$COMM_INSTALL"
- name: Build and Install KokkosComm
run: |
VERBOSE=1 cmake --build "$COMM_BUILD" --target install
- name: Remove remnants of KokkosComm build
run: |
rm -rf $"COMM_BUILD"
- name: Configure KokkosComm Unit Tests against Installed
run: |
cmake -S "$COMM_SRC"/unit_tests -B "$COMM_UNIT_TESTS_BUILD" -DKokkos_ROOT="$KOKKOS_INSTALL" -DKokkosComm_ROOT="$COMM_INSTALL" -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build KokkosComm Unit Tests
run: |
VERBOSE=1 cmake --build "$COMM_UNIT_TESTS_BUILD"
- name: Run KokkosComm Unit Tests against Install
run: |
ctest -V --test-dir "$COMM_UNIT_TESTS_BUILD"
- name: Configure KokkosComm Perf Tests against Installed
run: |
cmake -S "$COMM_SRC"/perf_tests -B "$COMM_PERF_TESTS_BUILD" -DKokkos_ROOT="$KOKKOS_INSTALL" -DKokkosComm_ROOT="$COMM_INSTALL" -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build KokkosComm Perf Tests
run: |
VERBOSE=1 cmake --build "$COMM_PERF_TESTS_BUILD"
- name: Run KokkosComm Perf Tests against Install
run: |
ctest -V --test-dir "$COMM_PERF_TESTS_BUILD"