Skip to content

Commit 8063a5e

Browse files
authored
Add different request types (#677)
1 parent e1d8c36 commit 8063a5e

File tree

7 files changed

+401
-96
lines changed

7 files changed

+401
-96
lines changed

docs/src/reference/pointtopoint.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Types
44

55
```@docs
6+
MPI.AbstractRequest
67
MPI.Request
8+
MPI.UnsafeRequest
9+
MPI.MultiRequest
10+
MPI.UnsafeMultiRequest
711
MPI.RequestSet
812
MPI.Status
913
```
@@ -59,6 +63,7 @@ MPI.Waitsome
5963
### Probe/Cancel
6064

6165
```@docs
66+
MPI.isnull
6267
MPI.Cancel!
6368
MPI.Iprobe
6469
MPI.Probe

src/collective.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Barrier(comm::Comm)
1717
end
1818

1919
"""
20-
Ibarrier(comm::Comm)
20+
Ibarrier(comm::Comm[, req::AbstractRequest = Request())
2121
2222
Blocks until `comm` is synchronized.
2323
@@ -28,8 +28,8 @@ If `comm` is an intercommunicator, then it blocks until all members of the other
2828
# External links
2929
$(_doc_external("MPI_Ibarrier"))
3030
"""
31-
function Ibarrier(comm::Comm)
32-
req = Request()
31+
function Ibarrier(comm::Comm, req::AbstractRequest = Request())
32+
@assert isnull(req)
3333
# int MPI_Ibarrier(MPI_Comm comm, MPI_Req req)
3434
API.MPI_Ibarrier(comm, req)
3535
return req

0 commit comments

Comments
 (0)