forked from devitocodes/devito
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from xdslproject/separate_concerns_I
compiler: Separate concerns
- Loading branch information
Showing
15 changed files
with
821 additions
and
781 deletions.
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,46 @@ | ||
# This workflow will install MLIR, Python dependencies, run tests and lint with a single version of Python | ||
# File inherited from https://github.com/xdslproject/xdsl/blob/main/.github/workflows/ci-mlir.yml | ||
|
||
name: CI - MLIR-based Testing for MPI + openmp | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: papychacal/xdsl-llvm:98e674c9f16d677d95c67bc130e267fae331e43c | ||
steps: | ||
- name: Checkout Devito | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install native dependencies | ||
run: | | ||
apt-get update && apt install curl mpich -y | ||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
- name: Install requirements and xDSL | ||
run: | | ||
pip install -e .[tests] | ||
pip install mpi4py | ||
pip install git+https://github.com/xdslproject/xdsl@210181350d926f91ee5fdb27f0eb5d1cf53a8997 | ||
- name: Test with MPI + openmp | ||
run: | | ||
export DEVITO_LANGUAGE=openmp | ||
# Add mlir-opt to the path | ||
export PATH=/xdsl-sc/llvm-project/build/bin/:$PATH | ||
pytest -m "parallel" -k "not adjoint" tests/test_xdsl_* -vvv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflow will install MLIR, Python dependencies, run tests and lint with a single version of Python | ||
# File inherited from https://github.com/xdslproject/xdsl/blob/main/.github/workflows/ci-mlir.yml | ||
|
||
name: CI - MLIR-based Testing + openmp | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: papychacal/xdsl-llvm:98e674c9f16d677d95c67bc130e267fae331e43c | ||
steps: | ||
- name: Checkout Devito | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install native dependencies | ||
run: | | ||
apt-get update && apt install curl mpich -y | ||
- name: Upgrade pip | ||
run: | | ||
pip install --upgrade pip | ||
- name: Install requirements and xDSL | ||
run: | | ||
pip install -e .[tests] | ||
pip install mpi4py | ||
pip install git+https://github.com/xdslproject/xdsl@210181350d926f91ee5fdb27f0eb5d1cf53a8997 | ||
- name: Test no-MPI, Openmp | ||
run: | | ||
export DEVITO_MPI=0 | ||
export DEVITO_LANGUAGE=openmp | ||
# Add mlir-opt to the path | ||
export PATH=/xdsl-sc/llvm-project/build/bin/:$PATH | ||
pytest -m "not parallel" -k "not adjoint" tests/test_xdsl_* -vvv |
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
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.