File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments