Skip to content

Commit

Permalink
Build variorum
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 16, 2025
1 parent 083d345 commit 45c1620
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-with-kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
image: ${{ matrix.image }}
env:
Kokkos_ROOT: /opt/kokkos
Variorum_ROOT: /opt/variorum
steps:
- name: Checkout Kokkos Tools
uses: actions/checkout@v4
Expand All @@ -38,6 +39,12 @@ jobs:
repository: kokkos/kokkos
path: kokkos
ref: develop
- name: Checkout Varioum
uses: actions/checkout@v4
with:
repository: LLNL/variorum
path: variorum
ref: 249a39bf41972afe2213d3dc904e47647364f466
- name: Install compilers
run : |
apt update
Expand Down Expand Up @@ -79,6 +86,13 @@ jobs:
libopenmpi-dev \
systemtap-sdt-dev \
libpapi-dev
- name: Compile and install Variorum
working-directory: variorum
run: |
cp ${GITHUB_WORKSPACE}/kokkos.presets.json CMakePresets.json
cmake -S src --preset=${{ matrix.preset }}
cmake --build --preset=${{ matrix.preset }}
cmake --install build-with-${{ matrix.preset }} --prefix=${Variorum_ROOT}
- name: Compile and install Kokkos
working-directory: kokkos
run: |
Expand All @@ -88,6 +102,7 @@ jobs:
cmake --install build-with-${{ matrix.preset }} --prefix=${Kokkos_ROOT}
- name: Build Kokkos Tools, enabling examples
run: |
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH};${VARIORUM_ROOT}
cmake -S . --preset=${{ matrix.preset }}
cmake --build --preset=${{ matrix.preset }}
cmake --install build-with-${{ matrix.preset }} --prefix=/opt/kokkos-tools
Expand Down

0 comments on commit 45c1620

Please sign in to comment.