Collectives
Blocking forms return the receive buffer; nonblocking I… forms return a Request and accept post, persistent, timeout and tag.
Reductions
UCC.Allreduce! Function
UCC.Allreduce!(sendbuf, recvbuf, op, team::Team)
UCC.Iallreduce!(sendbuf, recvbuf, op, team::Team; kwargs...) :: RequestReduce 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
UCC.Iallreduce! Function
UCC.Allreduce!(sendbuf, recvbuf, op, team::Team)
UCC.Iallreduce!(sendbuf, recvbuf, op, team::Team; kwargs...) :: RequestReduce 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
UCC.Allreduce!(sendrecvbuf, op, team::Team)
UCC.Iallreduce!(sendrecvbuf, op, team::Team; kwargs...) :: RequestReduce the array sendrecvbuf using op, writing the result in place on all ranks.
UCC.Reduce! Function
UCC.Reduce!(sendbuf, recvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendbuf, recvbuf, op, team::Team; root=0, kwargs...) :: RequestReduce 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
UCC.Ireduce! Function
UCC.Reduce!(sendbuf, recvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendbuf, recvbuf, op, team::Team; root=0, kwargs...) :: RequestReduce 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
UCC.Reduce!(sendrecvbuf, op, team::Team; root=0)
UCC.Ireduce!(sendrecvbuf, op, team::Team; root=0, kwargs...) :: RequestReduce the array sendrecvbuf using op, writing the result in place on rank root.
UCC.ReduceScatter! Function
UCC.ReduceScatter!(sendbuf, recvbuf, op, team::Team)
UCC.IreduceScatter!(sendbuf, recvbuf, op, team::Team; kwargs...) :: RequestReduce 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
UCC.IreduceScatter! Function
UCC.ReduceScatter!(sendbuf, recvbuf, op, team::Team)
UCC.IreduceScatter!(sendbuf, recvbuf, op, team::Team; kwargs...) :: RequestReduce 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
UCC.ReduceScatterv! Function
UCC.ReduceScatterv!(sendbuf, recvbuf, counts, op, team::Team)
UCC.IreduceScatterv!(sendbuf, recvbuf, counts, op, team::Team; kwargs...) :: RequestReduce 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
UCC.IreduceScatterv! Function
UCC.ReduceScatterv!(sendbuf, recvbuf, counts, op, team::Team)
UCC.IreduceScatterv!(sendbuf, recvbuf, counts, op, team::Team; kwargs...) :: RequestReduce 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
Data movement
UCC.Broadcast! Function
UCC.Broadcast!(sendrecvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendrecvbuf, team::Team; root=0, kwargs...) :: RequestCopy sendrecvbuf on rank root to sendrecvbuf on all ranks.
External links
UCC_COLL_TYPE_BCAST
UCC.Ibroadcast! Function
UCC.Broadcast!(sendrecvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendrecvbuf, team::Team; root=0, kwargs...) :: RequestCopy sendrecvbuf on rank root to sendrecvbuf on all ranks.
External links
UCC_COLL_TYPE_BCAST
UCC.Broadcast!(sendbuf, recvbuf, team::Team; root=0)
UCC.Ibroadcast!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: RequestCopy 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.
UCC.Allgather! Function
UCC.Allgather!(sendbuf, recvbuf, team::Team)
UCC.Iallgather!(sendbuf, recvbuf, team::Team; kwargs...) :: RequestConcatenate sendbuf from each rank into recvbuf on all ranks.
External links
UCC_COLL_TYPE_ALLGATHER
UCC.Iallgather! Function
UCC.Allgather!(sendbuf, recvbuf, team::Team)
UCC.Iallgather!(sendbuf, recvbuf, team::Team; kwargs...) :: RequestConcatenate sendbuf from each rank into recvbuf on all ranks.
External links
UCC_COLL_TYPE_ALLGATHER
UCC.Allgather!(sendrecvbuf, team::Team)
UCC.Iallgather!(sendrecvbuf, team::Team; kwargs...) :: RequestIn-place allgather: each rank's contribution is the rank-th block of sendrecvbuf.
UCC.Allgatherv! Function
UCC.Allgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing)
UCC.Iallgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing, kwargs...) :: RequestGather 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
UCC.Iallgatherv! Function
UCC.Allgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing)
UCC.Iallgatherv!(sendbuf, recvbuf, counts, team::Team; displs=nothing, kwargs...) :: RequestGather 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
UCC.Alltoall! Function
UCC.Alltoall!(sendbuf, recvbuf, team::Team)
UCC.Ialltoall!(sendbuf, recvbuf, team::Team; kwargs...) :: RequestSend 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
UCC.Ialltoall! Function
UCC.Alltoall!(sendbuf, recvbuf, team::Team)
UCC.Ialltoall!(sendbuf, recvbuf, team::Team; kwargs...) :: RequestSend 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
UCC.Alltoall!(sendrecvbuf, team::Team)
UCC.Ialltoall!(sendrecvbuf, team::Team; kwargs...) :: RequestIn-place all-to-all.
sourceUCC.Alltoallv! Function
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...) :: RequestSend 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
UCC.Ialltoallv! Function
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...) :: RequestSend 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
UCC.Gather! Function
UCC.Gather!(sendbuf, recvbuf, team::Team; root=0)
UCC.Igather!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: RequestConcatenate 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
UCC.Igather! Function
UCC.Gather!(sendbuf, recvbuf, team::Team; root=0)
UCC.Igather!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: RequestConcatenate 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
UCC.Gatherv! Function
UCC.Gatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing)
UCC.Igatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing, kwargs...) :: RequestGather 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
UCC.Igatherv! Function
UCC.Gatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing)
UCC.Igatherv!(sendbuf, recvbuf, counts, team::Team; root=0, displs=nothing, kwargs...) :: RequestGather 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
UCC.Scatter! Function
UCC.Scatter!(sendbuf, recvbuf, team::Team; root=0)
UCC.Iscatter!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: RequestSend 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.
UCC.Iscatter! Function
UCC.Scatter!(sendbuf, recvbuf, team::Team; root=0)
UCC.Iscatter!(sendbuf, recvbuf, team::Team; root=0, kwargs...) :: RequestSend 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.
UCC.Scatterv! Function
UCC.Scatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing)
UCC.Iscatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing, kwargs...) :: RequestSend 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
UCC.Iscatterv! Function
UCC.Scatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing)
UCC.Iscatterv!(sendbuf, counts, recvbuf, team::Team; root=0, displs=nothing, kwargs...) :: RequestSend 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
Synchronization
UCC.Barrier Function
UCC.Barrier(team::Team)
UCC.Ibarrier(team::Team; kwargs...) :: RequestBlock until all ranks of team have reached the barrier.
External links
UCC_COLL_TYPE_BARRIER
UCC.Ibarrier Function
UCC.Barrier(team::Team)
UCC.Ibarrier(team::Team; kwargs...) :: RequestBlock until all ranks of team have reached the barrier.
External links
UCC_COLL_TYPE_BARRIER
UCC.Fanin Function
UCC.Fanin(team::Team; root=0)
UCC.Ifanin(team::Team; root=0, kwargs...) :: RequestRank root waits until all ranks have entered the fan-in.
External links
UCC_COLL_TYPE_FANIN
UCC.Ifanin Function
UCC.Fanin(team::Team; root=0)
UCC.Ifanin(team::Team; root=0, kwargs...) :: RequestRank root waits until all ranks have entered the fan-in.
External links
UCC_COLL_TYPE_FANIN
UCC.Fanout Function
UCC.Fanout(team::Team; root=0)
UCC.Ifanout(team::Team; root=0, kwargs...) :: RequestAll ranks wait until rank root has entered the fan-out.
External links
UCC_COLL_TYPE_FANOUT
UCC.Ifanout Function
UCC.Fanout(team::Team; root=0)
UCC.Ifanout(team::Team; root=0, kwargs...) :: RequestAll ranks wait until rank root has entered the fan-out.
External links
UCC_COLL_TYPE_FANOUT
Buffers
UCC.memory_type Function
UCC.memory_type(buffer) :: LibUCC.ucc_memory_type_tThe 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.
UCC.synchronize_buffer Function
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