MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / IsDutyRank

Method IsDutyRank

oneflow/core/graph/task_graph.cpp:1408–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406}
1407
1408bool RankTaskGraph::IsDutyRank(const ParallelDesc& parallel_desc, int64_t rank) const {
1409 return IsComputTaskNodeDutyRank(current_rank_, parallel_desc, rank);
1410}
1411
1412template<typename DoEachRankT>
1413Maybe<void> RankTaskGraph::DoRankDuty(const ParallelDesc& parallel_desc,

Callers 1

CompileMethod · 0.80

Calls 1

IsComputTaskNodeDutyRankFunction · 0.85

Tested by

no test coverage detected