File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,23 @@ include("mpiexec_wrapper.jl")
9797include (" deprecated.jl" )
9898
9999function __init__ ()
100+
101+ # an empty string was used to indicate "default"
102+ # https://github.com/JuliaParallel/MPI.jl/blob/v0.19.2/deps/build.jl#L142
103+ mpi_env_binary = get (ENV , " JULIA_MPI_BINARY" , " " )
104+ if mpi_env_binary != " " && mpi_env_binary != MPIPreferences. binary
105+ @info """
106+ The JULIA_MPI_BINARY environment variable is no longer used to configure the MPI binary.
107+ Please use the MPIPreferences.jl package instead:
108+
109+ MPIPreferences.use_system_binary() # use the system binary
110+ MPIPreferences.use_jll_binary() # use JLL binary
111+
112+ See https://juliaparallel.org/MPI.jl/stable/configuration/ for more details
113+
114+ """ ENV [" JULIA_MPI_BINARY" ]= mpi_env_binary MPIPreferences. binary
115+ end
116+
100117 @static if Sys. isunix ()
101118 # dlopen the MPI library before any ccall:
102119 # - RTLD_GLOBAL is required for Open MPI
You can’t perform that action at this time.
0 commit comments