Skip to content

updates

updates #509

Workflow file for this run

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