Skip to content

Commit 82bff4a

Browse files
authored
update one sided API (#496)
- Make use of exclamation consistent - Allocations return Arrays - add docs
1 parent 21e9d97 commit 82bff4a

File tree

10 files changed

+201
-108
lines changed

10 files changed

+201
-108
lines changed

deps/build.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if haskey(ENV, "JULIA_MPIEXEC")
5050
end
5151
update_config = true
5252
end
53-
53+
5454

5555
if update_config
5656
open(config_toml, write=true) do f
@@ -75,11 +75,11 @@ if binary == "system"
7575
if libmpi == ""
7676
error("libmpi could not be found")
7777
end
78-
78+
7979
const mpiexec_cmd = Cmd(mpiexec isa String ? [mpiexec] : mpiexec)
80-
80+
8181
_doc_external(fname) = ""
82-
82+
8383
include(joinpath("..","src","implementations.jl"))
8484

8585
@info "Using implementation" libmpi mpiexec_cmd MPI_LIBRARY_VERSION_STRING

deps/consts_microsoftmpi.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ const MPI_MODE_DELETE_ON_CLOSE = reinterpret(Cint, 0x00000010)
100100
const MPI_MODE_UNIQUE_OPEN = reinterpret(Cint, 0x00000020)
101101
const MPI_MODE_SEQUENTIAL = reinterpret(Cint, 0x00000100)
102102
const MPI_MODE_APPEND = reinterpret(Cint, 0x00000080)
103+
const MPI_MODE_NOCHECK = Cint(1024)
104+
const MPI_MODE_NOSTORE = Cint(2048)
105+
const MPI_MODE_NOPUT = Cint(4096)
106+
const MPI_MODE_NOPRECEDE = Cint(8192)
107+
const MPI_MODE_NOSUCCEED = Cint(16384)
103108

104109
const MPI_SEEK_SET = Cint(600)
105110
const MPI_SEEK_CUR = Cint(602)

deps/consts_mpich.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ const MPI_MODE_DELETE_ON_CLOSE = Cint(16)
105105
const MPI_MODE_UNIQUE_OPEN = Cint(32)
106106
const MPI_MODE_SEQUENTIAL = Cint(256)
107107
const MPI_MODE_APPEND = Cint(128)
108+
const MPI_MODE_NOCHECK = Cint(1024)
109+
const MPI_MODE_NOSTORE = Cint(2048)
110+
const MPI_MODE_NOPUT = Cint(4096)
111+
const MPI_MODE_NOPRECEDE = Cint(8192)
112+
const MPI_MODE_NOSUCCEED = Cint(16384)
108113

109114
const MPI_SEEK_SET = Cint(600)
110115
const MPI_SEEK_CUR = Cint(602)

deps/consts_openmpi.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ const MPI_MODE_DELETE_ON_CLOSE = Cint(16)
112112
const MPI_MODE_UNIQUE_OPEN = Cint(32)
113113
const MPI_MODE_SEQUENTIAL = Cint(256)
114114
const MPI_MODE_APPEND = Cint(128)
115+
const MPI_MODE_NOCHECK = Cint(1)
116+
const MPI_MODE_NOPRECEDE = Cint(2)
117+
const MPI_MODE_NOPUT = Cint(4)
118+
const MPI_MODE_NOSTORE = Cint(8)
119+
const MPI_MODE_NOSUCCEED = Cint(16)
115120

116121
const MPI_SEEK_SET = Cint(600)
117122
const MPI_SEEK_CUR = Cint(602)

deps/gen_consts.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ MPI_Cints = [
143143
:MPI_MODE_UNIQUE_OPEN,
144144
:MPI_MODE_SEQUENTIAL,
145145
:MPI_MODE_APPEND,
146+
:MPI_MODE_NOCHECK,
147+
:MPI_MODE_NOSTORE,
148+
:MPI_MODE_NOPUT,
149+
:MPI_MODE_NOPRECEDE,
150+
:MPI_MODE_NOSUCCEED,
146151
:MPI_SEEK_SET,
147152
:MPI_SEEK_CUR,
148153
:MPI_SEEK_END,

src/deprecated.jl

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,23 @@ import Base: @deprecate
186186

187187

188188
# Deprecated in v0.19
189-
@deprecate(Init_thread(required::ThreadLevel; kwargs...), Init(;threadlevel=required, kwargs...), false)
189+
@deprecate(Init_thread(required::ThreadLevel; kwargs...), Init(;threadlevel=required, kwargs...), false)
190+
191+
# Deprecated in v0.20
192+
@deprecate(Win_allocate_shared(::Type{T}, len, comm::Comm; kwargs...) where T,
193+
Win_allocate_shared(Ptr{T}, len, comm; kwargs...), false)
194+
@deprecate(Win_shared_query(win::Win, rank::Int),
195+
Win_shared_query(Ptr{Cvoid}, win, rank), false)
196+
197+
@deprecate(Win_attach(win::Win, base::AbstractArray{T}) where T, Win_attach!(win, base), false)
198+
@deprecate(Win_detach(win::Win, base::AbstractArray{T}) where T, Win_detach!(win, base), false)
199+
200+
@deprecate(Get(origin, rank, disp, win), Get!(origin, rank, disp, win), false)
201+
@deprecate(Get(origin, rank, win), Get!(origin, rank, win), false)
202+
@deprecate(Put(origin, rank, disp, win), Put!(origin, rank, disp, win), false)
203+
@deprecate(Put(origin, rank, win), Put!(origin, rank, win), false)
204+
@deprecate(Fetch_and_op(sourceval, returnval, target_rank::Integer, target_disp::Integer, op::Op, win::Win),
205+
Fetch_and_op!(sourceval, returnval, target_rank, target_disp, op, win), false)
206+
207+
@deprecate(Accumulate(origin, rank, disp, op, win), Accumulate!(origin, rank, disp, op, win), false)
208+
@deprecate(Get_accumulate(origin, result, rank, disp, op, win), Get_accumulate!(origin, result, rank, disp, op, win), false)

0 commit comments

Comments
 (0)