basetenlabs/setup-mpi
forked from mpi4py/setup-mpi
Captured source
source ↗published Mar 17, 2025seen 5dcaptured 9hhttp 200method plain
basetenlabs/setup-mpi
Description: Set up your GitHub Actions workflow to use MPI
License: MIT
Stars: 0
Forks: 0
Open issues: 0
Created: 2025-03-17T14:59:59Z
Pushed: 2025-03-17T15:00:27Z
Default branch: master
Fork: yes
Parent repository: mpi4py/setup-mpi
Archived: no
README:
setup-mpi
Set up your GitHub Actions workflow to use MPI.
Usage
See [action.yml](action.yml)
Basic:
steps: - uses: actions/checkout@v4 - uses: mpi4py/setup-mpi@v1 - run: mpicc helloworld.c -o helloworld - run: mpiexec -n 2 ./helloworld
Matrix Testing:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
mpi: [ 'mpich', 'openmpi', 'intelmpi']
name: ${{ matrix.mpi }} example
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- run: mpicc helloworld.c -o helloworld
- run: mpiexec -n 2 ./helloworldAvailable MPI implementations
- Linux:
MPICH, Open MPI, and Intel MPI (apt install).
- macOS:
MPICH and Open MPI (brew install).
- Windows:
Microsoft MPI and Intel MPI.
Notability
notability 2.0/10Routine fork, no traction