Skip to content

Make get_dot_graph_from_partition work with duplicated computation - #417

Merged
inducer merged 1 commit into
inducer:mainfrom
majosm:partition-dot-graph-duplicated-computation
Mar 14, 2023
Merged

Make get_dot_graph_from_partition work with duplicated computation#417
inducer merged 1 commit into
inducer:mainfrom
majosm:partition-dot-graph-duplicated-computation

Conversation

@majosm

@majosm majosm commented Feb 1, 2023

Copy link
Copy Markdown
Collaborator

Currently each array is given a single name in the emitted dot code, even if it is computed by multiple parts. This can lead to strangeness like the duplicated edges entering the _in0[_0, _1] + 1 node in the graph below:

before_fix

This PR tweaks the code to make sure that each node to be emitted gets assigned a unique name. With the changes, the above graph becomes:

after_fix

@majosm
majosm force-pushed the partition-dot-graph-duplicated-computation branch 4 times, most recently from f6ceb07 to ca9205b Compare February 1, 2023 20:39
@majosm
majosm marked this pull request as ready for review February 1, 2023 21:34
@majosm
majosm force-pushed the partition-dot-graph-duplicated-computation branch from ca9205b to a345fa6 Compare February 20, 2023 21:27
@inducer
inducer force-pushed the partition-dot-graph-duplicated-computation branch from a345fa6 to 51f96c4 Compare March 8, 2023 19:20
@inducer
inducer merged commit a00f8b4 into inducer:main Mar 14, 2023
@inducer

inducer commented Mar 14, 2023

Copy link
Copy Markdown
Owner

Thanks!

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.

2 participants