Skip to content

Commit f0c6c17

Browse files
committed
more MPItrampoline fixes
1 parent e952a3e commit f0c6c17

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

.github/workflows/UnitTests.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ jobs:
354354
using Pkg
355355
Pkg.develop(path="lib/MPIPreferences")
356356
357-
- name: use OpenMPI_jll
357+
- name: use MPItrampoline_jll
358358
shell: julia --color=yes --project=test {0}
359359
run: |
360360
using Pkg
@@ -505,7 +505,7 @@ jobs:
505505
- libmpich-dev
506506
- libopenmpi-dev
507507
julia_version:
508-
- "1.6"
508+
- "1"
509509
# We don't need to test all combinations
510510
# - "1.7"
511511
# - "nightly"
@@ -515,7 +515,8 @@ jobs:
515515
runs-on: ubuntu-20.04
516516

517517
env:
518-
JULIA_MPI_BINARY: MPItrampoline_jll
518+
JULIA_MPI_TEST_BINARY: MPItrampoline_jll
519+
JULIA_MPI_TEST_ABI: MPIwrapper
519520
MPITRAMPOLINE_LIB: /usr/local/lib/libmpiwrapper.so
520521
MPITRAMPOLINE_MPIEXEC: /usr/bin/mpiexec
521522
OMPI_MCA_btl_base_warn_component_unused: 0
@@ -542,18 +543,22 @@ jobs:
542543
with:
543544
version: ${{ matrix.julia_version }}
544545

545-
# https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
546-
- name: Cache artifacts
547-
uses: actions/cache@v1
548-
env:
549-
cache-name: cache-artifacts
550-
with:
551-
path: ~/.julia/artifacts
552-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
553-
restore-keys: |
554-
${{ runner.os }}-test-${{ env.cache-name }}-
555-
${{ runner.os }}-test-
556-
${{ runner.os }}-
546+
- uses: julia-actions/cache@v1
547+
548+
- name: add MPIPreferences
549+
shell: julia --color=yes --project=. {0}
550+
run: |
551+
using Pkg
552+
Pkg.develop(path="lib/MPIPreferences")
553+
554+
- name: use MPItrampoline_jll
555+
shell: julia --color=yes --project=test {0}
556+
run: |
557+
using Pkg
558+
Pkg.develop(path="lib/MPIPreferences")
559+
using MPIPreferences
560+
MPIPreferences.use_jll_binary("MPItrampoline_jll", export_prefs=true)
561+
rm("test/Manifest.toml")
557562
558563
- uses: julia-actions/julia-runtest@latest
559564

src/MPI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ elseif MPIPreferences.binary == "OpenMPI_jll"
4343
elseif MPIPreferences.binary == "MicrosoftMPI_jll"
4444
import MicrosoftMPI_jll: libmpi, mpiexec
4545
elseif MPIPreferences.binary == "MPItrampoline_jll"
46-
import MPItrampoline_jll: libmpi, mpiexec
46+
import MPItrampoline_jll: MPItrampoline_jll, libmpi, mpiexec
4747
const libmpiconstants = MPItrampoline_jll.libload_time_mpi_constants_path
4848
else
4949
error("Unknown MPI binary: $(MPIPreferences.binary)")

0 commit comments

Comments
 (0)