Skip to content

Execution Engines ​

UCC.ExecutionEngine Type
julia
UCC.ExecutionEngine(team::Team, ee_type, ee_context::Ptr, [ee_context_size]) :: ExecutionEngine

Create a UCC execution engine (e.g. a CUDA stream) on team. With CUDA.jl loaded, use UCC.ExecutionEngine(team, stream::CuStream).

Collectives initialized with post=false can then be posted in stream order with UCC.triggered_post!.

External links

  • ucc_ee_create, ucc_ee_destroy
source
UCC.triggered_post! Function
julia
UCC.triggered_post!(ee::ExecutionEngine, req::Request;
                    ev_type=UCC_EVENT_COMPUTE_COMPLETE) :: Request

Post req (initialized with post=false) so that it starts once the work already enqueued on ee has completed. Complete it with wait(req) as usual.

External links

  • ucc_collective_triggered_post
source
UCC.get_event Function
julia
UCC.get_event(ee::ExecutionEngine) :: Union{Ptr{ucc_ev_t},Nothing}

Retrieve the next pending event of ee (or nothing). Acknowledge it with UCC.ack_event!.

External links

  • ucc_ee_get_event
source
UCC.ack_event! Function
julia
UCC.ack_event!(ee::ExecutionEngine, ev::Ptr{ucc_ev_t})

Acknowledge an event obtained with UCC.get_event.

source
UCC.set_event! Function
julia
UCC.set_event!(ee::ExecutionEngine, ev::Ref{ucc_ev_t})

Notify ee of an event.

source
Base.wait Method
julia
wait(ee::ExecutionEngine, ev)

Block until the event ev is triggered on ee.

source