Skip to content

Commit 5bcb514

Browse files
authored
Add MPI_LIBRARY_VERSION constant (#354)
1 parent 414c1ee commit 5bcb514

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deps/build.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ end
7272

7373
MPI_VERSION = Get_version()
7474

75+
@info "MPI version:\n$(MPI_VERSION)"
76+
7577
function Get_library_version()
7678
# There is no way to query at runtime what the length of the buffer should be.
7779
# https://github.com/mpi-forum/mpi-issues/issues/159
@@ -88,7 +90,9 @@ function Get_library_version()
8890
return String(buf)
8991
end
9092

91-
@info "MPI library version:\n$(Get_library_version())"
93+
MPI_LIBRARY_VERSION = Get_library_version()
94+
95+
@info "MPI library version:\n$(MPI_LIBRARY_VERSION)"
9296

9397
open("deps.jl","w") do f
9498
println(f, "# This file is automatically generated")
@@ -97,6 +101,7 @@ open("deps.jl","w") do f
97101
println(f, :(const libmpi = $libmpi))
98102
println(f, :(const libmpi_size = $libsize))
99103
println(f, :(const MPI_VERSION = $MPI_VERSION))
104+
println(f, :(const MPI_LIBRARY_VERSION = $MPI_LIBRARY_VERSION))
100105
println(f, :(const mpiexec_path = $mpiexec_path))
101106

102107
if Sys.iswindows()

0 commit comments

Comments
 (0)