Skip to content

Commit a6384d3

Browse files
committed
Remove MPI_Abi_get_version
1 parent 3a3eaba commit a6384d3

3 files changed

Lines changed: 0 additions & 34 deletions

File tree

docs/src/reference/library.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
```@docs
66
MPI.MPI_VERSION
7-
MPI.MPI_ABI_VERSION
87
MPI.MPI_LIBRARY
98
MPI.MPI_LIBRARY_VERSION
109
MPI.MPI_LIBRARY_VERSION_STRING

src/api/api.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,6 @@ end
140140

141141
include("generated_api.jl")
142142

143-
# We define this function here temporarily. This call will fail for
144-
# MPI <5. Once we regenerate the API for MPI 5.0, this should go away
145-
# again.
146-
function MPI_Abi_get_version(major, minor)
147-
try
148-
@mpicall ccall((:MPI_Abi_get_version, libmpi), Cint, (Ptr{Cint}, Ptr{Cint}), major, minor)
149-
catch
150-
# This is an older MPI implementation which does not support the MPI ABI.
151-
major[] = -1
152-
minor[] = -1
153-
end
154-
end
155-
156143
for handle in [
157144
:MPI_Comm,
158145
:MPI_Datatype,

src/implementations.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,6 @@ $(_doc_external("MPI_Get_version"))
8181
const MPI_VERSION = Get_version()
8282

8383

84-
function Abi_get_version()
85-
major = Ref{Cint}()
86-
minor = Ref{Cint}()
87-
API.MPI_Abi_get_version(major, minor)
88-
major[] == -1 && return nothing
89-
VersionNumber(major[], minor[])
90-
end
91-
92-
"""
93-
MPI_ABI_VERSION :: Union{Nothing,VersionNumber}
94-
95-
The supported version of the MPI ABI standard.
96-
97-
# External links
98-
$(_doc_external("MPI_Abi_get_version"))
99-
"""
100-
const MPI_ABI_VERSION = Abi_get_version()
101-
102-
10384
using PkgVersion
10485
"""
10586
MPI.versioninfo(io::IO=stdout)
@@ -135,7 +116,6 @@ function versioninfo(io::IO=stdout)
135116
println(io, " libmpi: ", API.libmpi)
136117
println(io, " libmpi dlpath: ", Libdl.dlpath(API.libmpi))
137118
println(io, " MPI version: ", Get_version())
138-
println(io, " MPI ABI version: ", Abi_get_version())
139119
println(io, " Library version: ")
140120
for line in split(Get_library_version(), '\n')
141121
println(io, " ", line)

0 commit comments

Comments
 (0)