Skip to content

Commit 1655da9

Browse files
authored
Avoid InitError on Julia 1.3 with system MPI libraries (#456)
* Avoid InitError on Julia 1.3 + Unix + system MPI * Add version check
1 parent 078723f commit 1655da9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/implementations.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ macro mpicall(expr)
1010

1111
# On unix systems we call the global symbols to allow for LD_PRELOAD interception
1212
# It can be emulated in Windows (via Libdl.dllist), but this is not fast.
13-
if Sys.isunix() && expr.args[2].head == :tuple
13+
if Sys.isunix() && expr.args[2].head == :tuple &&
14+
(VERSION v"1.5-" || expr.args[2].args[1] :(:MPI_Get_library_version))
1415
expr.args[2] = expr.args[2].args[1]
1516
end
1617

0 commit comments

Comments
 (0)