[GPU] Not to add sync if the node belongs to shape of subgraph (#18158)

* Not to add sync if the node is within shape of subgraph
Because the dependency is cpu impl so the execution is already finished.

* Fixed as review comment : Skip clFinish only when the runtime dep is shape of subgraph, not the current node
This commit is contained in:
Taylor Yeonbok Lee 2023-06-25 21:51:45 -07:00 committed by GitHub
parent 22aa219ab0
commit bf299c807e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,6 +272,8 @@ void primitive_inst::update_shape() {
continue;
}
auto& dep = _node->get_dependency(i);
if (dep.is_in_shape_of_subgraph())
continue;
auto dep_id = dep.id();
// exclude fused node from memory_deps
if (_node->is_fused_dep(i)) {