From 20cb28b699aae7042ed64c82a1636843fe91afd9 Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Wed, 20 Mar 2024 13:51:35 +0000 Subject: [PATCH] remove mpi --- .github/workflows/docs.yml | 12 ++---------- .github/workflows/run-tests.yml | 11 ++--------- .github/workflows/run-weekly-tests.yml | 19 +++---------------- .github/workflows/style-checks.yml | 6 +----- 4 files changed, 8 insertions(+), 40 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 14e5008..e20f147 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 @@ -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: | diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ef85292..9de5b27 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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: @@ -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 diff --git a/.github/workflows/run-weekly-tests.yml b/.github/workflows/run-weekly-tests.yml index b5dce34..5534315 100644 --- a/.github/workflows/run-weekly-tests.yml +++ b/.github/workflows/run-weekly-tests.yml @@ -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: @@ -33,22 +26,16 @@ 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 @@ -56,4 +43,4 @@ jobs: ./examples.sh - name: Build docs - run: cargo doc --features "mpi,strict" --no-deps + run: cargo doc --features "strict" --no-deps diff --git a/.github/workflows/style-checks.yml b/.github/workflows/style-checks.yml index 58aa4c3..a33f536 100644 --- a/.github/workflows/style-checks.yml +++ b/.github/workflows/style-checks.yml @@ -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: