Skip to content

Requests ​

UCC.Request Type
julia
UCC.Request

A collective operation returned by the nonblocking collectives (UCC.Iallreduce!, …). Complete it with wait(req) (which returns the receive buffer) or poll it with UCC.test.

Persistent requests (created with persistent=true) can be re-posted with UCC.post! after completing, and must be released with UCC.free.

A dropped request keeps its buffers alive until UCC.free_deferred releases it after completion.

External links

  • ucc_collective_post, ucc_collective_test, ucc_collective_finalize
source
UCC.status Function
julia
UCC.status(req::Request) :: LibUCC.ucc_status_t

The raw UCC status of req (UCC_OK, UCC_INPROGRESS, UCC_OPERATION_INITIALIZED or an error code).

source
UCC.post! Function
julia
UCC.post!(req::Request) :: Request

Post an initialized (post=false) or completed persistent request.

External links

  • ucc_collective_post
source
UCC.test Function
julia
UCC.test(req::Request) :: Bool

Progress the team's context once and return whether req has completed. A completed non-persistent request is freed. Throws a UCCError if the collective failed.

source
Base.wait Method
julia
wait(req::Request)

Block (yielding to other tasks) until req completes, and return its receive buffer (or nothing for barrier-like collectives).

source
UCC.free Function
julia
UCC.free(req::Request)

Release the resources of req. Non-persistent requests are freed automatically when they complete.

External links

  • ucc_collective_finalize
source