File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 38
38
const libmpi = find_library (Sys. iswindows () ? " msmpi.dll" : " libmpi" ,
39
39
MPI_LIBRARY_PATH != = nothing ? [MPI_LIBRARY_PATH] : [])
40
40
41
- libptr = dlopen_e (libmpi)
42
- if libmpi == " " || libptr == C_NULL
43
- error (" No MPI library found" )
41
+ if libmpi == " "
42
+ error (" No MPI library found.\n Ensure an MPI implementation is loaded, or set the `JULIA_MPI_PATH` variable." )
44
43
end
45
- @info " Using MPI library $libmpi "
46
44
47
- libpath = dlpath (libptr)
48
- libsize = filesize (libpath)
45
+ # expand paths
46
+ libmpi = dlpath (libmpi)
47
+ libsize = filesize (libmpi)
48
+
49
+ mpiexec = Sys. which (mpiexec)
50
+
51
+ @info " Using MPI library $libmpi "
49
52
50
53
function Get_version ()
51
54
major = Ref {Cint} ()
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ MPI_pointers = [
105
105
:MPI_STATUSES_IGNORE ,
106
106
]
107
107
108
+ const libptr = dlopen_e (libmpi)
108
109
109
110
open (" gen_consts.c" ," w" ) do f
110
111
print (f,"""
You can’t perform that action at this time.
0 commit comments