Skip to content

Collectives ​

Blocking forms return the receive buffer; nonblocking I… forms return a Request and accept post, persistent, timeout and tag.

Reductions ​

UCC.Allreduce! Function
julia
UCC.Allreduce!(sendbuf, recvbuf, op, team::Team)
UCC.Iallreduce!(sendbuf, recvbuf, op, team::Team; kwargs...) :: Request

Reduce array sendbuf using op (one of +, *, min, max, &, |, xor, UCC.avg, UCC.land, …), writing the result to recvbuf on all ranks.

External links

  • UCC_COLL_TYPE_ALLREDUCE
source
UCC.Iallreduce! Function
julia
UCC.Allreduce!(sendbuf, recvbuf, op, team::Team)
UCC.Iallreduce!(sendbuf, recvbuf, op, team::Team; kwargs...) :: Request

Reduce array sendbuf using op (one of +, *, min, max, &, |, xor, UCC.avg, UCC.land, …), writing the result to recvbuf on all ranks.

External links

  • UCC_COLL_TYPE_ALLREDUCE
source
julia
UCC.Allreduce!(sendrecvbuf, op, team::Team)
UCC.Iallreduce!(sendrecvbuf, op, team::Team; kwargs...) :: Request

Reduce the array sendrecvbuf using op, writing the result in place on all ranks.

source
UCC.Reduce! Function
julia
UCC.Reduce!(sendbuf, recvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendbuf, recvbuf, op, team::Team; root=0, kwargs...) :: Request

Reduce the array sendbuf using op, writing the result to recvbuf on rank root. recvbuf is only used on root, and may be nothing elsewhere.

External links

  • UCC_COLL_TYPE_REDUCE
source
UCC.Ireduce! Function
julia
UCC.Reduce!(sendbuf, recvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendbuf, recvbuf, op, team::Team; root=0, kwargs...) :: Request

Reduce the array sendbuf using op, writing the result to recvbuf on rank root. recvbuf is only used on root, and may be nothing elsewhere.

External links

  • UCC_COLL_TYPE_REDUCE
source
julia
UCC.Reduce!(sendrecvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendrecvbuf, op, team::Team; root=0, kwargs...) :: Request

Reduce the array sendrecvbuf using op, writing the result in place on rank root.

source
UCC.ReduceScatter! Function
julia
UCC.ReduceScatter!(sendbuf, recvbuf, op, team::Team)
UCC.IreduceScatter!(sendbuf, recvbuf, op, team::Team; kwargs...) :: Request

Reduce sendbuf from each rank using op, and leave the reduced result scattered over the ranks such that recvbuf on rank i contains the i-th block of the result.

External links

  • UCC_COLL_TYPE_REDUCE_SCATTER
source
UCC.IreduceScatter! Function
julia
UCC.ReduceScatter!(sendbuf, recvbuf, op, team::Team)
UCC.IreduceScatter!(sendbuf, recvbuf, op, team::Team; kwargs...) :: Request

Reduce sendbuf from each rank using op, and leave the reduced result scattered over the ranks such that recvbuf on rank i contains the i-th block of the result.

External links

  • UCC_COLL_TYPE_REDUCE_SCATTER
source
UCC.ReduceScatterv! Function
julia
UCC.ReduceScatterv!(sendbuf, recvbuf, counts, op, team::Team)
UCC.IreduceScatterv!(sendbuf, recvbuf, counts, op, team::Team; kwargs...) :: Request

Reduce sendbuf (of length sum(counts)) from each rank using op; rank i receives the counts[i+1] elements of the result starting at offset sum(counts[1:i]) in recvbuf.

External links

  • UCC_COLL_TYPE_REDUCE_SCATTERV
source
UCC.IreduceScatterv! Function
julia
UCC.ReduceScatterv!(sendbuf, recvbuf, counts, op, team::Team)
UCC.IreduceScatterv!(sendbuf, recvbuf, counts, op, team::Team; kwargs...) :: Request

Reduce sendbuf (of length sum(counts)) from each rank using op; rank i receives the counts[i+1] elements of the result starting at offset sum(counts[1:i]) in recvbuf.

External links

  • UCC_COLL_TYPE_REDUCE_SCATTERV
source

Data movement ​

UCC.Broadcast! Function
julia
UCC.Broadcast!(sendrecvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendrecvbuf, team::Team; root=0, kwargs...) :: Request

Copy sendrecvbuf on rank root to sendrecvbuf on all ranks.

External links

  • UCC_COLL_TYPE_BCAST
source
UCC.Ibroadcast! Function
julia
UCC.Broadcast!(sendrecvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendrecvbuf, team::Team; root=0, kwargs...) :: Request

Copy sendrecvbuf on rank root to sendrecvbuf on all ranks.

External links

  • UCC_COLL_TYPE_BCAST
source
julia
UCC.Broadcast!(sendbuf, recvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: Request

Copy sendbuf on rank root to recvbuf on all ranks. sendbuf is only used on root, and may be nothing elsewhere.

The two-buffer form requires immediate, non-persistent posting. For persistent=true or post=false (including triggered posting), use Ibroadcast!(recvbuf, team; ...) and copy into recvbuf on the root before each post, after the previous operation has completed.

source
UCC.Allgather! Function
julia
UCC.Allgather!(sendbuf, recvbuf, team::Team)
UCC.Iallgather!(sendbuf, recvbuf, team::Team; kwargs...) :: Request

Concatenate sendbuf from each rank into recvbuf on all ranks.

External links

  • UCC_COLL_TYPE_ALLGATHER
source
UCC.Iallgather! Function
julia
UCC.Allgather!(sendbuf, recvbuf, team::Team)
UCC.Iallgather!(sendbuf, recvbuf, team::Team; kwargs...) :: Request

Concatenate sendbuf from each rank into recvbuf on all ranks.

External links

  • UCC_COLL_TYPE_ALLGATHER
source
julia
UCC.Allgather!(sendrecvbuf, team::Team)
UCC.Iallgather!(sendrecvbuf, team::Team; kwargs...) :: Request

In-place allgather: each rank's contribution is the rank-th block of sendrecvbuf.

source
UCC.Allgatherv! Function
julia
UCC.Allgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing)
UCC.Iallgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing, kwargs...) :: Request

Gather sendbuf from every rank into recvbuf on all ranks, where rank i contributes counts[i+1] elements placed at element offset displs[i+1] (blocks packed back to back by default).

External links

  • UCC_COLL_TYPE_ALLGATHERV
source
UCC.Iallgatherv! Function
julia
UCC.Allgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing)
UCC.Iallgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing, kwargs...) :: Request

Gather sendbuf from every rank into recvbuf on all ranks, where rank i contributes counts[i+1] elements placed at element offset displs[i+1] (blocks packed back to back by default).

External links

  • UCC_COLL_TYPE_ALLGATHERV
source
UCC.Alltoall! Function
julia
UCC.Alltoall!(sendbuf, recvbuf, team::Team)
UCC.Ialltoall!(sendbuf, recvbuf, team::Team; kwargs...) :: Request

Send the i-th block of sendbuf to rank i, receiving the j-th block of recvbuf from rank j. Both buffers have size(team) equal blocks.

External links

  • UCC_COLL_TYPE_ALLTOALL
source
UCC.Ialltoall! Function
julia
UCC.Alltoall!(sendbuf, recvbuf, team::Team)
UCC.Ialltoall!(sendbuf, recvbuf, team::Team; kwargs...) :: Request

Send the i-th block of sendbuf to rank i, receiving the j-th block of recvbuf from rank j. Both buffers have size(team) equal blocks.

External links

  • UCC_COLL_TYPE_ALLTOALL
source
julia
UCC.Alltoall!(sendrecvbuf, team::Team)
UCC.Ialltoall!(sendrecvbuf, team::Team; kwargs...) :: Request

In-place all-to-all.

source
UCC.Alltoallv! Function
julia
UCC.Alltoallv!(sendbuf, sendcounts, recvbuf, recvcounts, team::Team;
               sdispls=nothing, rdispls=nothing)
UCC.Ialltoallv!(sendbuf, sendcounts, recvbuf, recvcounts, team::Team;
                sdispls=nothing, rdispls=nothing, kwargs...) :: Request

Send sendcounts[i+1] elements at offset sdispls[i+1] of sendbuf to rank i, and receive recvcounts[j+1] elements at offset rdispls[j+1] of recvbuf from rank j. Displacements default to packed blocks.

External links

  • UCC_COLL_TYPE_ALLTOALLV
source
UCC.Ialltoallv! Function
julia
UCC.Alltoallv!(sendbuf, sendcounts, recvbuf, recvcounts, team::Team;
               sdispls=nothing, rdispls=nothing)
UCC.Ialltoallv!(sendbuf, sendcounts, recvbuf, recvcounts, team::Team;
                sdispls=nothing, rdispls=nothing, kwargs...) :: Request

Send sendcounts[i+1] elements at offset sdispls[i+1] of sendbuf to rank i, and receive recvcounts[j+1] elements at offset rdispls[j+1] of recvbuf from rank j. Displacements default to packed blocks.

External links

  • UCC_COLL_TYPE_ALLTOALLV
source
UCC.Gather! Function
julia
UCC.Gather!(sendbuf, recvbuf, team::Team; root=0)
UCC.Igather!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: Request

Concatenate sendbuf from each rank into recvbuf on rank root. recvbuf is only used on root, and may be nothing elsewhere.

External links

  • UCC_COLL_TYPE_GATHER
source
UCC.Igather! Function
julia
UCC.Gather!(sendbuf, recvbuf, team::Team; root=0)
UCC.Igather!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: Request

Concatenate sendbuf from each rank into recvbuf on rank root. recvbuf is only used on root, and may be nothing elsewhere.

External links

  • UCC_COLL_TYPE_GATHER
source
UCC.Gatherv! Function
julia
UCC.Gatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing)
UCC.Igatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing, kwargs...) :: Request

Gather sendbuf (of length counts[rank+1]) from each rank into recvbuf on rank root, at element offsets displs (packed by default). recvbuf may be nothing on non-root ranks.

External links

  • UCC_COLL_TYPE_GATHERV
source
UCC.Igatherv! Function
julia
UCC.Gatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing)
UCC.Igatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing, kwargs...) :: Request

Gather sendbuf (of length counts[rank+1]) from each rank into recvbuf on rank root, at element offsets displs (packed by default). recvbuf may be nothing on non-root ranks.

External links

  • UCC_COLL_TYPE_GATHERV
source
UCC.Scatter! Function
julia
UCC.Scatter!(sendbuf, recvbuf, team::Team; root=0)
UCC.Iscatter!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: Request

Send the i-th block of sendbuf on rank root to recvbuf on rank i. sendbuf is only used on root, and may be nothing elsewhere.

UCC 1.8's transports do not implement UCC_COLL_TYPE_SCATTER, so this is posted as a scatterv with equal counts.

source
UCC.Iscatter! Function
julia
UCC.Scatter!(sendbuf, recvbuf, team::Team; root=0)
UCC.Iscatter!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: Request

Send the i-th block of sendbuf on rank root to recvbuf on rank i. sendbuf is only used on root, and may be nothing elsewhere.

UCC 1.8's transports do not implement UCC_COLL_TYPE_SCATTER, so this is posted as a scatterv with equal counts.

source
UCC.Scatterv! Function
julia
UCC.Scatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing)
UCC.Iscatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing, kwargs...) :: Request

Send counts[i+1] elements at offset displs[i+1] (packed by default) of sendbuf on rank root to recvbuf on rank i. sendbuf may be nothing on non-root ranks.

External links

  • UCC_COLL_TYPE_SCATTERV
source
UCC.Iscatterv! Function
julia
UCC.Scatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing)
UCC.Iscatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing, kwargs...) :: Request

Send counts[i+1] elements at offset displs[i+1] (packed by default) of sendbuf on rank root to recvbuf on rank i. sendbuf may be nothing on non-root ranks.

External links

  • UCC_COLL_TYPE_SCATTERV
source

Synchronization ​

UCC.Barrier Function
julia
UCC.Barrier(team::Team)
UCC.Ibarrier(team::Team; kwargs...) :: Request

Block until all ranks of team have reached the barrier.

External links

  • UCC_COLL_TYPE_BARRIER
source
UCC.Ibarrier Function
julia
UCC.Barrier(team::Team)
UCC.Ibarrier(team::Team; kwargs...) :: Request

Block until all ranks of team have reached the barrier.

External links

  • UCC_COLL_TYPE_BARRIER
source
UCC.Fanin Function
julia
UCC.Fanin(team::Team; root=0)
UCC.Ifanin(team::Team; root=0, kwargs...) :: Request

Rank root waits until all ranks have entered the fan-in.

External links

  • UCC_COLL_TYPE_FANIN
source
UCC.Ifanin Function
julia
UCC.Fanin(team::Team; root=0)
UCC.Ifanin(team::Team; root=0, kwargs...) :: Request

Rank root waits until all ranks have entered the fan-in.

External links

  • UCC_COLL_TYPE_FANIN
source
UCC.Fanout Function
julia
UCC.Fanout(team::Team; root=0)
UCC.Ifanout(team::Team; root=0, kwargs...) :: Request

All ranks wait until rank root has entered the fan-out.

External links

  • UCC_COLL_TYPE_FANOUT
source
UCC.Ifanout Function
julia
UCC.Fanout(team::Team; root=0)
UCC.Ifanout(team::Team; root=0, kwargs...) :: Request

All ranks wait until rank root has entered the fan-out.

External links

  • UCC_COLL_TYPE_FANOUT
source

Buffers ​

UCC.memory_type Function
julia
UCC.memory_type(buffer) :: LibUCC.ucc_memory_type_t

The UCC memory type of buffer. Host arrays are UCC_MEMORY_TYPE_HOST; GPU array packages add methods through package extensions (e.g. CuArrays when CUDA.jl is loaded). Wrappers such as SubArray defer to their parent.

source
UCC.synchronize_buffer Function
julia
UCC.synchronize_buffer(buffer)

Called on every buffer before a collective is posted. UCC collectives are ordered on the host, so device buffers must have finished any pending writes; the CUDA extension synchronizes the task-local stream here.

source