Added a python script to get the example inputs that contain KOKKOS styles and generate the input lists for regression tests
This commit is contained in:
30
.github/workflows/kokkos-regression.yaml
vendored
30
.github/workflows/kokkos-regression.yaml
vendored
@ -10,13 +10,18 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build LAMMPS
|
||||
name: Build LAMMPS with Kokkos OpenMP
|
||||
# restrict to official LAMMPS repository
|
||||
if: ${{ github.repository == 'lammps/lammps' }}
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
style: [ 'pair', 'fix', 'compute', 'misc' ]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
@ -71,18 +76,31 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
source linuxenv/bin/activate
|
||||
python3 tools/regression-tests/get_kokkos_input.py --examples-top-level=examples
|
||||
|
||||
python3 tools/regression-tests/run_tests.py \
|
||||
--lmp-bin=build/lmp \
|
||||
--config-file=tools/regression-tests/config_kokkos_openmp.yaml \
|
||||
--example-folders="examples/colloid;examples/melt;examples/micelle;examples/threebody" \
|
||||
--output-file=output.xml --progress-file=progress.yaml --log-file=run.log \
|
||||
--list-input=input-list-${{ matrix.style }}-kk.txt \
|
||||
--output-file=output-${{ matrix.style }}.xml \
|
||||
--progress-file=progress-${{ matrix.style }}.yaml --log-file=run-${{ matrix.style }}.log \
|
||||
--verbose
|
||||
|
||||
tar -cvf kokkos-regression-test.tar run.log progress.yaml output.xml
|
||||
tar -cvf kokkos-regression-test-${{ matrix.style }}.tar run-${{ matrix.style }}.log progress-${{ matrix.style }}.yaml output-${{ matrix.style }}.xml
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: kokkos-regression-test-artifact
|
||||
path: kokkos-regression-test.tar
|
||||
name: kokkos-regression-test-artifact-${{ matrix.style }}
|
||||
path: kokkos-regression-test-${{ matrix.style }}.tar
|
||||
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Merge Artifacts
|
||||
uses: actions/upload-artifact/merge@v4
|
||||
with:
|
||||
name: merged-kokkos-regresssion-artifact
|
||||
pattern: kokkos-regression-test-artifact-*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user