Skip to content

Distributed v2 - #65

Closed
inducer wants to merge 45 commits into
mainfrom
distributed-v2
Closed

Distributed v2#65
inducer wants to merge 45 commits into
mainfrom
distributed-v2

Conversation

@inducer

@inducer inducer commented Apr 9, 2021

Copy link
Copy Markdown
Owner

@inducer inducer mentioned this pull request Apr 9, 2021

@inducer inducer left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some thoughts on your GraphToDictMapper implementation below.

Comment thread examples/mpi.py Outdated
return sum([a for a in args])


class GraphToDictMapper(WalkMapper):

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you benefiting from being a WalkMapper here? You need to override all map_ methods here anyhow, and if you miss one, you get incorrect results.

@matthiasdiener matthiasdiener Apr 17, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My impression when using the Mapper class was that I was just reimplementing a WalkMapper, but considering your other comment below, a Mapper seems more appropiate.

Comment thread examples/mpi.py Outdated
Comment on lines +27 to +28
children = children | {expr}
super().map_placeholder(expr, children)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this construction end up gathering up all the children of a node, not just the immediate ones?

@matthiasdiener matthiasdiener Apr 17, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I thought that was the goal :-/. Will fix.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now, could you check again @inducer ?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I thought that was the goal :-/. Will fix.

It can't be: That would be a data structure of size O(n^2)!

Comment thread examples/mpi.py Outdated
@inducer

inducer commented Apr 18, 2021

Copy link
Copy Markdown
Owner Author

Unsubscribing... @-mention or request review once it's ready for a look or needs attention.

Comment thread examples/mpi.py Outdated
Comment on lines +17 to +18
:class:`dict`, maps each node in the graph to the set of directly connected
nodes.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify direction.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

matthiasdiener added a commit that referenced this pull request Aug 30, 2021
@matthiasdiener matthiasdiener mentioned this pull request Aug 30, 2021
5 tasks
@matthiasdiener

Copy link
Copy Markdown
Contributor

Closed in favor of #148.

@matthiasdiener
matthiasdiener deleted the distributed-v2 branch November 23, 2021 23:52
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