Skip to content

Commit

Permalink
[GPU] Move event completion wait to first of execute_impl (#23363)
Browse files Browse the repository at this point in the history
### Details:
 - Move event completion wait to first of execute_impl

### Tickets:
 - 129373
  • Loading branch information
wilson-seok authored Mar 13, 2024
1 parent 5d032b1 commit 1a769ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/intel_gpu/src/graph/impls/common/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ struct loop_impl : typed_primitive_impl<loop> {
// read initial execution condition from outer network
int64_t execution_condition = 1;
if (!primitive->first_execution_condition_id.empty()) {
// Wait for completion of the execution_condition of outer_network
if (outer_network.has_event(primitive->first_execution_condition_id))
outer_network.get_primitive_event(primitive->first_execution_condition_id)->wait();
memory::ptr first_execution_condition_mem = outer_network.get_primitive(primitive->first_execution_condition_id)->output_memory_ptr();
execution_condition = read_scalar_value(first_execution_condition_mem, stream);
}
Expand Down

0 comments on commit 1a769ce

Please sign in to comment.