[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:
parent
22aa219ab0
commit
bf299c807e
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user