Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ def get_correct_seq_id(collective):
if c.state != 'scheduled':
continue
rank_counts['appeared'].append(c.file_id)
if get_correct_seq_id(c) <= max_completed_collective_seq_id:
rank_counts['mismatched'].append(c.file_id)
if self.args.use_stale_entries_as_failures:
if get_correct_seq_id(c) <= max_completed_collective_seq_id:
rank_counts['mismatched'].append(c.file_id)
appeared_rank_counts = Counter(rank_counts['appeared'])
# Ranks with less number of enqueued collectives than max_enqueued_collective_seq_id -> host not making expected progress
for rank_id in self.pg_configs[process_group]['ranks']:
Expand Down Expand Up @@ -975,6 +976,13 @@ def main():
help='Convert the trace file to json file, if the trace is binary, for debugging',
)

parser.add_argument(
'--use-stale-entries-as-failures',
action='store_true',
help='Use stale entries as failures in the analysis,'
'which are older than the last completed collective for the process group',
)

args = parser.parse_args()

analyzer = CollectiveAnalyzer(args)
Expand Down