Skip to content

Commit 4ae3df3

Browse files
authored
[CI] Add test with OpenMPI v5 (#826)
1 parent 7f694b9 commit 4ae3df3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/UnitTests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,3 +558,52 @@ jobs:
558558
MPIPreferences.use_system_binary()
559559
560560
- uses: julia-actions/julia-runtest@v1
561+
562+
563+
# TODO: Can remove this once we can use OpenMPI_jll v5
564+
test-spack-openmpi5:
565+
timeout-minutes: 20
566+
strategy:
567+
matrix:
568+
include:
569+
- container: ghcr.io/juliaparallel/github-actions-buildcache:openmpi5-jq
570+
name: "OpenMPI 5.0.2"
571+
572+
fail-fast: false
573+
574+
runs-on: ubuntu-22.04
575+
container: ${{ matrix.container }}
576+
name: "Test ${{ matrix.name }}"
577+
578+
env:
579+
JULIA_MPI_TEST_BINARY: system
580+
JULIA_MPI_TEST_ABI: OpenMPI
581+
# Allow running as root
582+
OMPI_ALLOW_RUN_AS_ROOT: 1
583+
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
584+
# Allow oversubscription
585+
PRTE_MCA_rmaps_default_mapping_policy: :oversubscribe
586+
587+
steps:
588+
- name: Checkout
589+
uses: actions/checkout@v4
590+
591+
- uses: julia-actions/setup-julia@v1
592+
with:
593+
version: "1"
594+
595+
- uses: julia-actions/cache@v1
596+
- name: add MPIPreferences
597+
shell: julia --color=yes --project=. {0}
598+
run: |
599+
using Pkg
600+
Pkg.develop(path="lib/MPIPreferences")
601+
Pkg.precompile()
602+
603+
- name: use system MPI
604+
shell: julia --color=yes --project=. {0}
605+
run: |
606+
using MPIPreferences
607+
MPIPreferences.use_system_binary()
608+
609+
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)