forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Graph] Enable empty nodes in Subgraphs (#300)
* [SYCL][Graph] Enable empty nodes in Subgraphs The implementation uses the list of scheduled nodes to add a subgraph to a main graph. However, since empty nodes are not scheduled, empty nodes were not listed in this list, resulting in inconsistent graphs when subgraph with empty node(s) were added to a main graph. This PR fixes this issue by forcing to list empty nodes when creating the list for inserting subgraph. It also adds unitests to check that subgraphs with empty nodes are correctly added to a main graph. * [SYCL][Graph] Enable empty nodes in Subgraphs Changes the definition of MSchedule as it now contains all types of nodes (including empty nodes). Empty nodes are now filtered out when creating the commandbuffer and/or enqueuing nodes to only keep their dependencies. This PR updates a few unitests to make them compliant to the new schedule list definition. * Update sycl/source/detail/graph_impl.cpp Co-authored-by: Ben Tracy <ben.tracy@codeplay.com> --------- Co-authored-by: Ben Tracy <ben.tracy@codeplay.com>
- Loading branch information
1 parent
80cf699
commit 5318388
Showing
3 changed files
with
186 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters