Searched refs:dev_ranks (Results 1 – 2 of 2) sorted by relevance
296 Group DeviceManager::CreateGroup(const RankList &dev_ranks) { in CreateGroup() argument297 std::unordered_set<int64_t> rank_set(dev_ranks.begin(), dev_ranks.end()); in CreateGroup()298 if (dev_ranks.size() != rank_set.size()) { in CreateGroup()299 …MS_LOG(EXCEPTION) << "Invalid dev ranks(" << dev_ranks << "), it has the Duplicate elements in lis… in CreateGroup()302 std::string group_name = GenerateGroupNameByRanks(dev_ranks); in CreateGroup()303 auto dev_list = CreateDeviceListByRankList(dev_ranks); in CreateGroup()
72 std::string GenerateGroupNameByRanks(RankList dev_ranks);74 Group CreateGroup(const RankList &dev_ranks);