Skip to content

Teams ​

UCC.Team Type
julia
UCC.Team(ctx::Context, [oob::AbstractOOB=ctx.oob];
         ordering, outstanding_colls, sync_type, id) :: Team

Create a team: the UCC analogue of a communicator. All ranks of oob must call Team collectively; the calling process becomes rank oob_rank(oob). Pass a different oob (over a subset of the context's ranks) to create a sub-team.

Optional keywords (only passed to UCC when given):

  • ordering: a UCC_COLLECTIVE_* value of LibUCC.ucc_post_ordering_t

  • outstanding_colls: max number of outstanding collectives

  • sync_type: UCC_NO_SYNC_COLLECTIVES or UCC_SYNC_COLLECTIVES

  • id: unique team id

Teams are not freed by the garbage collector because destruction is a collective operation: call UCC.destroy on all ranks when done.

Examples

julia
ctx  = UCC.Context(UCC.MPIOOB(MPI.COMM_WORLD))   # requires `using MPI`
team = UCC.Team(ctx)
UCC.Allreduce!(x, +, team)

External links

  • ucc_team_create_post, ucc_team_create_test, ucc_team_destroy
source
UCC.rank Function
julia
UCC.rank(team::Team) :: Int

The 0-based index of the calling process in team.

source
UCC.size Function
julia
UCC.size(team::Team) :: Int

The number of ranks in team.

source
UCC.context Function
julia
UCC.context(team::Team) :: Context

The context team was created on.

source
UCC.attributes Method
julia
UCC.attributes(team::Team) :: LibUCC.ucc_team_attr_t

Query the attributes of team.

source