updates #522
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: MPI Examples | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| run-mpi-examples: | |
| name: Julia ${{ matrix.version }} - Ubuntu - MPI Examples | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ['1'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| - name: Install MPICH and FFTW | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y mpich libmpich-dev libfftw3-dev | |
| - name: Instantiate with MPI dependencies (system MPICH) | |
| run: | | |
| julia --project=. -e ' | |
| using Pkg | |
| Pkg.add(["MPI","PencilArrays","PencilFFTs"]) | |
| Pkg.resolve() | |
| ENV["JULIA_MPI_BINARY"] = "system" | |
| Pkg.build("MPI") | |
| Pkg.instantiate() | |
| ' | |
| - name: Run parallel example (scalar) | |
| run: | | |
| mpiexec -n 2 julia --project=. examples/parallel_roundtrip.jl | |
| - name: Run parallel example (vector) | |
| run: | | |
| mpiexec -n 2 julia --project=. examples/parallel_roundtrip.jl --vector |