Skip to content

Conversation

@mfrancepillois
Copy link
Collaborator

Duplicates the nodes of a sub-graph when added to its parents to enable multiple parents.
As a result nodes of the initial sub-graph and the one of the main graph are no longer the exact same (shared_pointer) but two different nodes with similar content.
A few unitests have been updated accordingly and an equal operator has been added to node_impl to ease comparison between nodes.

@mfrancepillois mfrancepillois added Graph Implementation Related to DPC++ implementation and testing cherry-pick labels Aug 8, 2023
Copy link
Collaborator

@julianmi julianmi left a comment

Choose a reason for hiding this comment

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

LGTM

@mfrancepillois mfrancepillois force-pushed the maxime/duplicate_sub-graph_nodes branch from ffb5417 to 3327567 Compare August 11, 2023 11:50
Copy link
Collaborator

@Bensuo Bensuo left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor comments.

Maxime France-Pillois added 6 commits August 14, 2023 10:11
Duplicates the nodes of a sub-graph when added to its parents to enable multiple parents.
As a result nodes of the initial sub-graph and the one of the main graph are no longer
the exact same (shared_pointer) but two different nodes with similar content.
A few unitests have been updated accordingly and an equal operator has been added
to node_impl to ease comparison between nodes.
Code factorization.
Function renaming.
Removes the duplication of in-recording queue when duplicating graphs.
Changes the duplication strategy for subgraph.
Duplication is now based on scheduled node list.
Removes graph_impl copy constructor
Rebase fixes + function/code refactorization
@mfrancepillois mfrancepillois force-pushed the maxime/duplicate_sub-graph_nodes branch from 20715ba to 82f2c31 Compare August 14, 2023 10:11
@mfrancepillois mfrancepillois merged commit 71f5314 into sycl-graph-develop Aug 14, 2023
@mfrancepillois mfrancepillois deleted the maxime/duplicate_sub-graph_nodes branch August 14, 2023 10:15
EwanC pushed a commit that referenced this pull request Aug 15, 2023
* [SYCL][Graph] Duplicate sub-graph nodes

Duplicates the nodes of a sub-graph when added to its parents to enable multiple parents.
As a result nodes of the initial sub-graph and the one of the main graph are no longer
the exact same (shared_pointer) but two different nodes with similar content.
A few unitests have been updated accordingly and an equal operator has been added
to node_impl to ease comparison between nodes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Graph Implementation Related to DPC++ implementation and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants