Skip to content

Commit

Permalink
[GPU] Forward further dependency events of skipped exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyamin-Roman committed Oct 14, 2024
1 parent 1b4faa6 commit 5ce8c6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plugins/intel_gpu/src/graph/impls/ocl/gemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ struct gemm_impl : multi_stage_primitive<gemm> {
if (instance.get_input_layout(0).count() == 0 ||
instance.get_input_layout(1).count() == 0) {
stream& stream = instance.get_network().get_stream();
stream.enqueue_barrier();
for (const auto& ev : events) {
ev->wait();
}
return instance.output_memory_ptr()->fill(stream);
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/src/graph/primitive_inst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ event::ptr primitive_inst::execute(const std::vector<event::ptr>& events) {
}

if (can_skip_execution) {
auto ev = get_network().get_stream().create_user_event(true);
auto ev = get_network().get_stream().aggregate_events(events);
update_shape_done_by_other = false; // reset
return ev;
}
Expand Down

0 comments on commit 5ce8c6b

Please sign in to comment.