in src/torch_ucc.cpp [446:469]
void CommPG::ucc_create_team(
ucc_team_h& team,
std::shared_ptr<torch_ucc_oob_coll_info_t> oob) {
ucc_status_t st;
ucc_team_params_t team_params;
team_params.mask = UCC_TEAM_PARAM_FIELD_EP | UCC_TEAM_PARAM_FIELD_EP_RANGE |
UCC_TEAM_PARAM_FIELD_OOB;
team_params.oob.allgather = oob_allgather;
team_params.oob.req_test = oob_allgather_test;
team_params.oob.req_free = oob_allgather_free;
team_params.oob.coll_info = oob.get();
team_params.oob.n_oob_eps = oob->size;
team_params.oob.oob_ep = oob->rank;
team_params.ep = oob->rank;
team_params.ep_range = UCC_COLLECTIVE_EP_RANGE_CONTIG;
TORCH_UCC_CHECK(
ucc_team_create_post(&ucc_comm.context, 1, &team_params, &team),
"failed to post team create");
do {
st = ucc_team_create_test(team);
ucc_context_progress(ucc_comm.context);
} while (st == UCC_INPROGRESS);
TORCH_UCC_CHECK(st, "failed to create UCC team");
}