File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ function Get_library_version()
90
90
return String (buf)
91
91
end
92
92
93
- MPI_LIBRARY_VERSION = Get_library_version ()
93
+ MPI_LIBRARY_VERSION_STRING = Get_library_version ()
94
94
95
- @info " MPI library version:\n $(MPI_LIBRARY_VERSION ) "
95
+ @info " MPI library version:\n $(MPI_LIBRARY_VERSION_STRING ) "
96
96
97
97
open (" deps.jl" ," w" ) do f
98
98
println (f, " # This file is automatically generated" )
@@ -101,7 +101,7 @@ open("deps.jl","w") do f
101
101
println (f, :(const libmpi = $ libmpi))
102
102
println (f, :(const libmpi_size = $ libsize))
103
103
println (f, :(const MPI_VERSION = $ MPI_VERSION))
104
- println (f, :(const MPI_LIBRARY_VERSION = $ MPI_LIBRARY_VERSION ))
104
+ println (f, :(const MPI_LIBRARY_VERSION_STRING = $ MPI_LIBRARY_VERSION_STRING ))
105
105
println (f, :(const mpiexec_path = $ mpiexec_path))
106
106
107
107
if Sys. iswindows ()
Original file line number Diff line number Diff line change @@ -175,9 +175,9 @@ function has_cuda()
175
175
# Only OpenMPI provides a function to check CUDA support
176
176
# - Spectrum MPI is an OpenMPI, but IBM removed the functionality
177
177
# check, therefore force true
178
- @static if occursin (" IBM Spectrum MPI" , MPI_LIBRARY_VERSION )
178
+ @static if occursin (" IBM Spectrum MPI" , MPI_LIBRARY_VERSION_STRING )
179
179
return true
180
- elseif startswith (MPI_LIBRARY_VERSION , " Open MPI" )
180
+ elseif startswith (MPI_LIBRARY_VERSION_STRING , " Open MPI" )
181
181
# int MPIX_Query_cuda_support(void)
182
182
return 0 != ccall ((:MPIX_Query_cuda_support , libmpi), Cint, ())
183
183
else
You can’t perform that action at this time.
0 commit comments