Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GPU] Move event completion wait to first of execute_impl #23363

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading