Skip to content

Commit cd43f8b

Browse files
authored
rename MPI_LIBRARY_VERSION => MPI_LIBRARY_VERSION_STRING (#359)
1 parent 854ab87 commit cd43f8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

deps/build.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ function Get_library_version()
9090
return String(buf)
9191
end
9292

93-
MPI_LIBRARY_VERSION = Get_library_version()
93+
MPI_LIBRARY_VERSION_STRING = Get_library_version()
9494

95-
@info "MPI library version:\n$(MPI_LIBRARY_VERSION)"
95+
@info "MPI library version:\n$(MPI_LIBRARY_VERSION_STRING)"
9696

9797
open("deps.jl","w") do f
9898
println(f, "# This file is automatically generated")
@@ -101,7 +101,7 @@ open("deps.jl","w") do f
101101
println(f, :(const libmpi = $libmpi))
102102
println(f, :(const libmpi_size = $libsize))
103103
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))
105105
println(f, :(const mpiexec_path = $mpiexec_path))
106106

107107
if Sys.iswindows()

src/environment.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ function has_cuda()
175175
# Only OpenMPI provides a function to check CUDA support
176176
# - Spectrum MPI is an OpenMPI, but IBM removed the functionality
177177
# 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)
179179
return true
180-
elseif startswith(MPI_LIBRARY_VERSION, "Open MPI")
180+
elseif startswith(MPI_LIBRARY_VERSION_STRING, "Open MPI")
181181
# int MPIX_Query_cuda_support(void)
182182
return 0 != ccall((:MPIX_Query_cuda_support, libmpi), Cint, ())
183183
else

0 commit comments

Comments
 (0)