Teams
UCC.Team Type
julia
UCC.Team(ctx::Context, [oob::AbstractOOB=ctx.oob];
ordering, outstanding_colls, sync_type, id) :: TeamCreate 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: aUCC_COLLECTIVE_*value ofLibUCC.ucc_post_ordering_toutstanding_colls: max number of outstanding collectivessync_type:UCC_NO_SYNC_COLLECTIVESorUCC_SYNC_COLLECTIVESid: 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
UCC.rank Function
julia
UCC.rank(team::Team) :: IntThe 0-based index of the calling process in team.
UCC.attributes Method
julia
UCC.attributes(team::Team) :: LibUCC.ucc_team_attr_tQuery the attributes of team.