Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ pub fn parse_path(path: &PathBuf, config: &ParseConfig) -> anyhow::Result<ParseO
failures: Vec::new(),
qps: TEMPLATE_QUERY_PARAM_SCRIPT,
};
let mut distinct_graph_breaks: Vec<String> = Vec::new();

let mut export_failures: Vec<ExportFailure> = Vec::new();

Expand Down Expand Up @@ -966,6 +967,9 @@ pub fn parse_path(path: &PathBuf, config: &ParseConfig) -> anyhow::Result<ParseO
id.clone(),
format!("{}", FailureReason::Restart(restart.clone())),
));
if !distinct_graph_breaks.contains(restart) {
distinct_graph_breaks.push(restart.clone());
}
}
}
if let Some(f) = m.fail_type.as_ref() {
Expand Down Expand Up @@ -1300,6 +1304,7 @@ pub fn parse_path(path: &PathBuf, config: &ParseConfig) -> anyhow::Result<ParseO
));

// Generate traditional tlparse index
let has_distinct_graph_breaks = !distinct_graph_breaks.is_empty();
let index_context = IndexContext {
css: CSS,
javascript: JAVASCRIPT,
Expand All @@ -1320,6 +1325,8 @@ pub fn parse_path(path: &PathBuf, config: &ParseConfig) -> anyhow::Result<ParseO
qps: TEMPLATE_QUERY_PARAM_SCRIPT,
has_inductor_provenance: config.inductor_provenance,
directory_names: directory_names.clone(),
distinct_graph_breaks,
has_distinct_graph_breaks,
};
let tlparse_index_html = tt.render("index.html", &index_context)?;

Expand Down
11 changes: 11 additions & 0 deletions src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ Various issues may cause Dynamo to restart its analysis or give up on compilatio
This run had <strong><a href="failures_and_restarts.html">{num_breaks} restart(s) and/or compilation failure(s)</a></strong>.
</p>
{{ endif }}
{{ if has_distinct_graph_breaks }}
<h2> Distinct Graph Breaks </h2>
<p>
Below is a summary of <strong>distinct graph break reasons</strong> across all compilations, with each unique break shown only once:
</p>
<ul>
{{ for reason in distinct_graph_breaks }}
<li><code>{reason}</code></li>
{{ endfor }}
</ul>
{{ endif }}
<h2>IR dumps</h2>
<p>
The <strong>IR dumps</strong> collected dumped intermediate products from various points of the PT2
Expand Down
2 changes: 2 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ pub struct IndexContext {
pub qps: &'static str,
pub has_inductor_provenance: bool,
pub directory_names: Vec<String>,
pub distinct_graph_breaks: Vec<String>,
pub has_distinct_graph_breaks: bool,
}

#[derive(Debug, Serialize)]
Expand Down