compiler: Improve alias scheduling #8801
This file contains hidden or 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
| name: Examples | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| tutorials: | |
| name: Examples with conda install | |
| runs-on: ubuntu-latest | |
| defaults: | |
| # Default for conda env | |
| run: | |
| shell: bash -l {0} | |
| env: | |
| DEVITO_ARCH: gcc | |
| DEVITO_LANGUAGE: "openmp" | |
| strategy: | |
| # Prevent all build to stop if a single one fails | |
| fail-fast: false | |
| steps: | |
| - name: Checkout devito | |
| uses: actions/checkout@v6 | |
| - name: Checkout data | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'devitocodes/data' | |
| path: 'data' | |
| - name: Setup conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: devito | |
| environment-file: environment-dev.yml | |
| auto-activate-base: false | |
| - name: Tests in examples | |
| run: | | |
| py.test --cov --cov-config=.coveragerc --cov-report=xml examples/ | |
| - name: Seismic acoustic examples | |
| run: | | |
| python examples/seismic/acoustic/acoustic_example.py --full | |
| python examples/seismic/acoustic/acoustic_example.py --full --checkpointing | |
| python examples/seismic/acoustic/acoustic_example.py --constant --full | |
| python examples/seismic/acoustic/acoustic_example.py --fs | |
| python examples/seismic/inversion/fwi.py | |
| python examples/seismic/self_adjoint/example_iso.py | |
| python examples/seismic/viscoacoustic/viscoacoustic_example.py | |
| python examples/seismic/viscoacoustic/viscoacoustic_example.py -k kv | |
| python examples/seismic/viscoacoustic/viscoacoustic_example.py -k maxwell | |
| - name: Seismic tti examples | |
| run: | | |
| python examples/seismic/tti/tti_example.py -a basic | |
| python examples/seismic/tti/tti_example.py -a basic --noazimuth | |
| python examples/seismic/tti/tti_example.py -k staggered | |
| python examples/seismic/tti/tti_example.py -nd 2 --full -so 12 | |
| python examples/seismic/tti/tti_example.py -nd 2 --full -so 4 --checkpointing | |
| - name: Seismic elastic examples | |
| run: | | |
| python examples/seismic/elastic/elastic_example.py | |
| python examples/seismic/viscoelastic/viscoelastic_example.py | |
| - name: Linear algebra example | |
| run: | | |
| python examples/misc/linalg.py mat-vec mat-mat mat-mat-sum transpose-mat-vec | |
| python examples/misc/linalg.py mat-vec -o mat-mat -o mat-mat-sum -o transpose-mat-vec -o | |
| - name: CFD examples | |
| run: | | |
| python examples/cfd/example_diffusion.py | |
| - name: Timestepping examples | |
| run: | | |
| python examples/timestepping/ic_superstep.py -d 1 | |
| python examples/timestepping/ic_superstep.py -d 2 | |
| python examples/timestepping/acoustic_superstep.py --model layered | |
| python examples/timestepping/acoustic_superstep.py --model marmousi | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: ${{ matrix.name }} |