Skip to content

Commit a8867ab

Browse files
authored
MPI.jl 0.20 compat (#35)
* MPI.jl 0.20 compat * switch to MPI.ANY_SOUCE
1 parent f2584f7 commit a8867ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
1010
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
1111

1212
[compat]
13-
MPI = "0.14, 0.15, 0.19"
13+
MPI = "0.14, 0.15, 0.19, 0.20"
1414
julia = "1.6"
1515

1616
[extras]

src/mpimanager.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ end
397397
function receive_event_loop(mgr::MPIManager)
398398
num_send_loops = 0
399399
while !isready(mgr.initiate_shutdown)
400-
(hasdata, stat) = MPI.Iprobe(MPI.MPI_ANY_SOURCE, 0, mgr.comm)
400+
(hasdata, stat) = MPI.Iprobe(isdefined(MPI, :ANY_SOURCE) ? MPI.ANY_SOURCE : MPI.MPI_ANY_SOURCE, 0, mgr.comm)
401401
if hasdata
402402
count = MPI.Get_count(stat, UInt8)
403403
buf = Array{UInt8}(undef, count)

0 commit comments

Comments
 (0)