@@ -8,18 +8,21 @@ export MPI_Aint, MPI_Count, MPI_Offset, MPI_Status,
88import MPIPreferences
99using Libdl
1010
11- if MPIPreferences. binary == " MPICH_jll"
12- import MPICH_jll: MPICH_jll, libmpi, libmpi_handle, mpiexec
13- const libmpiconstants = nothing
14- elseif MPIPreferences. binary == " OpenMPI_jll"
15- import OpenMPI_jll: OpenMPI_jll, libmpi, libmpi_handle, mpiexec
11+ if MPIPreferences. binary == " MPIABI_jll"
12+ import MPIABI_jll: MPIABI_jll, libmpi, libmpi_handle, mpiexec
1613 const libmpiconstants = nothing
17- elseif MPIPreferences. binary == " MicrosoftMPI_jll "
18- import MicrosoftMPI_jll : MicrosoftMPI_jll , libmpi, libmpi_handle, mpiexec
14+ elseif MPIPreferences. binary == " MPICH_jll "
15+ import MPICH_jll : MPICH_jll , libmpi, libmpi_handle, mpiexec
1916 const libmpiconstants = nothing
2017elseif MPIPreferences. binary == " MPItrampoline_jll"
2118 import MPItrampoline_jll: MPItrampoline_jll, libmpi, libmpi_handle, mpiexec
2219 const libmpiconstants = MPItrampoline_jll. libload_time_mpi_constants_path
20+ elseif MPIPreferences. binary == " MicrosoftMPI_jll"
21+ import MicrosoftMPI_jll: MicrosoftMPI_jll, libmpi, libmpi_handle, mpiexec
22+ const libmpiconstants = nothing
23+ elseif MPIPreferences. binary == " OpenMPI_jll"
24+ import OpenMPI_jll: OpenMPI_jll, libmpi, libmpi_handle, mpiexec
25+ const libmpiconstants = nothing
2326elseif MPIPreferences. binary == " system"
2427 import MPIPreferences. System: libmpi, libmpi_handle, mpiexec
2528 const libmpiconstants = nothing
@@ -33,7 +36,7 @@ const initexprs = Any[]
3336"""
3437 @const_ref name T expr
3538
36- Defines an constant binding
39+ Defines a constant binding
3740```julia
3841const name = Ref{T}()
3942```
@@ -48,14 +51,16 @@ macro const_ref(name, T, expr)
4851 :(const $ (esc (name)) = Ref {$T} ())
4952end
5053
51- @static if MPIPreferences. abi == " MPICH"
54+ @static if MPIPreferences. abi == " MPIABI"
55+ include (" mpiabi.jl" )
56+ elseif MPIPreferences. abi == " MPICH"
5257 include (" mpich.jl" )
53- elseif MPIPreferences. abi == " OpenMPI"
54- include (" openmpi.jl" )
55- elseif MPIPreferences. abi == " MicrosoftMPI"
56- include (" microsoftmpi.jl" )
5758elseif MPIPreferences. abi == " MPItrampoline"
5859 include (" mpitrampoline.jl" )
60+ elseif MPIPreferences. abi == " MicrosoftMPI"
61+ include (" microsoftmpi.jl" )
62+ elseif MPIPreferences. abi == " OpenMPI"
63+ include (" openmpi.jl" )
5964elseif MPIPreferences. abi == " HPE MPT"
6065 include (" mpt.jl" )
6166else
0 commit comments