-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#707: create a kokkos-only pipeline #708
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
12346d6
#707: add kokkos ci pipeline and fix build failures
cwschilly 7340335
#707: fix kokkos pipeline
cwschilly 09b1867
#707: remove MPI from kokkos pipeline
cwschilly daca965
#707: remove eigen from kokkos-only pipeline
cwschilly a235686
#707: add debug prints
cwschilly d435fd0
#707: fix stray / and remove debug prints
cwschilly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: github-Linux-kokkos | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
branches: [main, develop] | ||
paths-ignore: | ||
- 'logos/**' | ||
- 'helper_scripts/**' | ||
- 'docker_scripts/**' | ||
- 'docs/**' | ||
- '**/*.md' | ||
push: # for direct quick fixes | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
paths-ignore: | ||
- 'logos/**' | ||
- 'helper_scripts/**' | ||
- 'docker_scripts/**' | ||
- 'docs/**' | ||
- '**/*.md' | ||
|
||
concurrency: | ||
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{github.event_name == 'pull_request'}} | ||
|
||
jobs: | ||
CI-kokkos: | ||
name: Kokkos | ||
continue-on-error: false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- ubuntu-gnu-kokkos-cpu-serial-11 | ||
- ubuntu-gnu-kokkos-cpu-openmp-11 | ||
build_type: | ||
- Release | ||
- Debug | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/pressio/${{ matrix.image }} | ||
credentials: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.github_token }} | ||
env: | ||
num_cpus: 4 | ||
PRESSIO_INSTALL_DIR: ${{ github.workspace }}/pressio_install | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Checkout pressio examples | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Pressio/pressio-templates-usage-as-library | ||
path: examples | ||
ref: add-compatibility-with-pressio-ops | ||
|
||
- name: Checkout pressio-ops | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Pressio/pressio-ops | ||
path: pressio-ops | ||
ref: develop | ||
|
||
- name: Configure | ||
run: | | ||
cmake -B builddir \ | ||
-D CMAKE_BUILD_TYPE:STRING=${{ matrix.build_type }} \ | ||
-D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | ||
-D CMAKE_C_COMPILER:FILEPATH=$CC \ | ||
-D CMAKE_CXX_COMPILER:FILEPATH=$CXX \ | ||
-D PRESSIO_ENABLE_TESTS:BOOL=ON \ | ||
-D PRESSIO_ENABLE_TPL_EIGEN:BOOL=OFF \ | ||
-D PRESSIO_ENABLE_TPL_MPI:BOOL=OFF \ | ||
-D PRESSIO_ENABLE_TPL_KOKKOS:BOOL=ON \ | ||
-D Kokkos_ROOT=/kokkos/install \ | ||
-D KokkosKernels_ROOT=/kokkos-kernels/install \ | ||
-D PRESSIO_ENABLE_DEBUG_PRINT=ON \ | ||
-D CMAKE_INSTALL_PREFIX:PATH=${PRESSIO_INSTALL_DIR} \ | ||
-D CMAKE_CXX_FLAGS='-Wall -Werror' | ||
|
||
- name: Build | ||
run: cmake --build builddir -j $num_cpus --target install | ||
|
||
- name: Example - include only | ||
working-directory: examples | ||
run: | | ||
$CXX \ | ||
--std=c++17 \ | ||
-DPRESSIO_ENABLE_TPL_KOKKOS \ | ||
-I/kokkos/install/include \ | ||
-I/kokkos-kernels/install/include \ | ||
-I${GITHUB_WORKSPACE}/pressio-ops/include \ | ||
-I${PRESSIO_INSTALL_DIR}/include \ | ||
-c main.cpp | ||
|
||
- name: Example - include only with embedded definitions | ||
working-directory: examples | ||
run: | | ||
$CXX \ | ||
--std=c++17 \ | ||
-DPRESSIO_ENABLE_TPL_KOKKOS \ | ||
-I/kokkos/install/include \ | ||
-I/kokkos-kernels/install/include \ | ||
-I${GITHUB_WORKSPACE}/pressio-ops/include \ | ||
-I${PRESSIO_INSTALL_DIR}/include \ | ||
-c main_with_defines.cpp | ||
|
||
- name: Test | ||
working-directory: builddir | ||
run: | | ||
export LD_LIBRARY_PATH=/kokkos/install/lib:/kokkos-kernels/install/include | ||
ctest -j $num_cpus --output-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is necessary because the test calls
solveAllowMatOverwrite
.This function is in an
#if PRESSIO_ENABLE_TPL_TRILINOS
block because it uses a teuchos lapack wrapper. So if we're only using Kokkos (and not Trilinos), this function is not found.