Skip to content

Commit

Permalink
Add different request types (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne authored Dec 24, 2022
1 parent e1d8c36 commit 8063a5e
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 96 deletions.
5 changes: 5 additions & 0 deletions docs/src/reference/pointtopoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
## Types

```@docs
MPI.AbstractRequest
MPI.Request
MPI.UnsafeRequest
MPI.MultiRequest
MPI.UnsafeMultiRequest
MPI.RequestSet
MPI.Status
```
Expand Down Expand Up @@ -59,6 +63,7 @@ MPI.Waitsome
### Probe/Cancel

```@docs
MPI.isnull
MPI.Cancel!
MPI.Iprobe
MPI.Probe
Expand Down
6 changes: 3 additions & 3 deletions src/collective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Barrier(comm::Comm)
end

"""
Ibarrier(comm::Comm)
Ibarrier(comm::Comm[, req::AbstractRequest = Request())
Blocks until `comm` is synchronized.
Expand All @@ -28,8 +28,8 @@ If `comm` is an intercommunicator, then it blocks until all members of the other
# External links
$(_doc_external("MPI_Ibarrier"))
"""
function Ibarrier(comm::Comm)
req = Request()
function Ibarrier(comm::Comm, req::AbstractRequest = Request())
@assert isnull(req)
# int MPI_Ibarrier(MPI_Comm comm, MPI_Req req)
API.MPI_Ibarrier(comm, req)
return req
Expand Down
Loading

0 comments on commit 8063a5e

Please sign in to comment.