Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow emitting stmt_viz without specifying assembly #7515

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

steven-johnson
Copy link
Contributor

TL;DR: if we request stmt_viz without assembly, just generate the latter to a temp file that we dispose of later; this wasn't feasible before since we were previously requiring the assembly output to be generated with the same directory and basename as stmt_viz, but that was fixed.

TL;DR: if we request `stmt_viz` without `assembly`, just generate the latter to a temp file that we dispose of later; this wasn't feasible before since we were previously requiring the assembly output to be generated with the same directory and basename as stmt_viz, but that was fixed.
@abadams
Copy link
Member

abadams commented Apr 17, 2023

Does stmt_viz refer to the assembly file in-place, or does it slurp it into the generated html?

@steven-johnson
Copy link
Contributor Author

Does stmt_viz refer to the assembly file in-place, or does it slurp it into the generated html?

Pretty sure it just slurps, but I will doublecheck

@maaz139
Copy link
Contributor

maaz139 commented Apr 17, 2023

Does stmt_viz refer to the assembly file in-place, or does it slurp it into the generated html?

Pretty sure it just slurps, but I will doublecheck

That is correct, we read it from the assembly file into memory and emit a copy in the html.

steven-johnson added a commit that referenced this pull request Apr 17, 2023
Per discussion on #7507, this entirely removes the "classic" stmt_html output and replaces it with the "new" StmtToViz output. Using `compile_to_lowered_stmt` or requesting `stmt_html` will now always output the new output, and requesting `stmt_viz` output is no longer legal.

(Note that this builds on top of #7515, which must be submitted first.)

It's not clear to me whether #7507 (comment) is a blocker for this change, or a request to add back already-lost functionality.
@steven-johnson steven-johnson merged commit 8efc688 into main Apr 17, 2023
@steven-johnson steven-johnson deleted the srj/assembly-temp branch April 17, 2023 22:22
steven-johnson added a commit that referenced this pull request Apr 18, 2023
* Allow emitting `stmt_viz` without specifying `assembly`

TL;DR: if we request `stmt_viz` without `assembly`, just generate the latter to a temp file that we dispose of later; this wasn't feasible before since we were previously requiring the assembly output to be generated with the same directory and basename as stmt_viz, but that was fixed.

* Convert stmt_html output to use stmt_viz output

Per discussion on #7507, this entirely removes the "classic" stmt_html output and replaces it with the "new" StmtToViz output. Using `compile_to_lowered_stmt` or requesting `stmt_html` will now always output the new output, and requesting `stmt_viz` output is no longer legal.

(Note that this builds on top of #7515, which must be submitted first.)

It's not clear to me whether #7507 (comment) is a blocker for this change, or a request to add back already-lost functionality.

* Update Makefile

* Update Generator.cpp
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
TL;DR: if we request `stmt_viz` without `assembly`, just generate the latter to a temp file that we dispose of later; this wasn't feasible before since we were previously requiring the assembly output to be generated with the same directory and basename as stmt_viz, but that was fixed.
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Allow emitting `stmt_viz` without specifying `assembly`

TL;DR: if we request `stmt_viz` without `assembly`, just generate the latter to a temp file that we dispose of later; this wasn't feasible before since we were previously requiring the assembly output to be generated with the same directory and basename as stmt_viz, but that was fixed.

* Convert stmt_html output to use stmt_viz output

Per discussion on halide#7507, this entirely removes the "classic" stmt_html output and replaces it with the "new" StmtToViz output. Using `compile_to_lowered_stmt` or requesting `stmt_html` will now always output the new output, and requesting `stmt_viz` output is no longer legal.

(Note that this builds on top of halide#7515, which must be submitted first.)

It's not clear to me whether halide#7507 (comment) is a blocker for this change, or a request to add back already-lost functionality.

* Update Makefile

* Update Generator.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants