Skip to content

Commit

Permalink
remove mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Mar 20, 2024
1 parent 9c6fb7e commit 20cb28b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 40 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: "nightly"
- name: Set up MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: "mpich"
- uses: actions/checkout@v3

- name: Build docs
run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps -Zunstable-options -Zrustdoc-scrape-examples --features "mpi,strict"
run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps -Zunstable-options -Zrustdoc-scrape-examples --features "strict"

build-and-deploy-docs:
name: Build and deploy docs
Expand All @@ -45,14 +41,10 @@ jobs:
with:
toolchain: "nightly"
components: rustfmt
- name: Set up MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: "mpich"
- uses: actions/checkout@v3

- name: Build docs
run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps -Zunstable-options -Zrustdoc-scrape-examples --features "mpi"
run: RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --no-deps -Zunstable-options -Zrustdoc-scrape-examples

- name: Set file permissions
run: |
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,13 @@ jobs:
strategy:
matrix:
rust-version: ["stable"]
mpi: ['mpich', 'openmpi']
feature-flags: ['--features "mpi,strict"']
feature-flags: ['--features "strict"']
steps:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt
- name: Set up MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Install cargo-mpirun
run: cargo install cargo-mpirun
- uses: actions/checkout@v3
- name: Install LAPACK & OpenBLAS
run:
Expand All @@ -42,7 +35,7 @@ jobs:
- name: Run tests
run: cargo test --examples --release ${{ matrix.feature-flags }}
- name: Test benchmarks build
run: cargo bench --no-run --features "mpi,strict"
run: cargo bench --no-run --features "strict"
- name: Run examples
run: |
python3 find_examples.py
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/run-weekly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@ jobs:
strategy:
matrix:
rust-version: ["stable", "beta", "nightly"]
mpi: [ 'mpich', 'openmpi']
steps:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust-version }}
components: rustfmt
- name: Set up MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Install cargo-mpirun
run: cargo install cargo-mpirun
- uses: actions/checkout@v3
- name: Install LAPACK & OpenBLAS
run:
Expand All @@ -33,27 +26,21 @@ jobs:
run: cargo build --features "strict"
- name: Build rust library in release mode
run: cargo build --release --features "strict"
- name: Build rust library in release mode with mpi
run: cargo build --release --features "strict,mpi"


- name: Run unit tests
run: cargo test --features "strict"
- name: Run unit tests in release mode
run: cargo test --release --features "strict"
- name: Run unit tests with mpi enabled
run: cargo test --features "mpi,strict"
- name: Run unit tests in release mode with mpi enabled
run: cargo test --release --features "mpi,strict"
- name: Run tests
run: cargo test --examples --release --features "mpi,strict"
run: cargo test --examples --release --features "strict"
- name: Test benchmarks build
run: cargo bench --no-run --features "mpi,strict"
run: cargo bench --no-run --features "strict"
- name: Run examples
run: |
python3 find_examples.py
chmod +x examples.sh
./examples.sh
- name: Build docs
run: cargo doc --features "mpi,strict" --no-deps
run: cargo doc --features "strict" --no-deps
6 changes: 1 addition & 5 deletions .github/workflows/style-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
feature-flags: ['--features "mpi,strict"', '']
feature-flags: ['--features "strict"', '']
steps:
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt,clippy
- name: Set up MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: mpich
- uses: actions/checkout@v3
- name: Install LAPACK & OpenBLAS
run:
Expand Down

0 comments on commit 20cb28b

Please sign in to comment.