Skip to content

Commit

Permalink
parameter's event will be included execution args (#21377)
Browse files Browse the repository at this point in the history
- all primitives generate event.
- remove reorder from test-case
  • Loading branch information
sungeunk authored Dec 18, 2023
1 parent 7b00e80 commit da66211
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/plugins/intel_gpu/src/graph/primitive_inst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,6 @@ event::ptr primitive_inst::execute(const std::vector<event::ptr>& events) {
if (out_of_order_queue || _impl->is_cpu() || (can_be_optimized() && needs_completion_event() && !is_output())) {
dependencies.reserve(dependencies.size() + _exec_deps.size());
for (auto& input : _exec_deps) {
if (input->is_input() && !out_of_order_queue)
continue;
auto id = input->id();
try {
// if the requested event does not exists it means that it has not been executed, so the processing_order is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ class condition_gpu_tests: public ::testing::Test {
const primitive_id branch_input_id = "branch_input";
const primitive_id model_input = "input";
const primitive_id predicate_input = "predicate";
const primitive_id reorder_id = "reorder";
const primitive_id tranpose = "transpose";

cldnn::topology topology;
Expand All @@ -391,8 +390,7 @@ class condition_gpu_tests: public ::testing::Test {
condition::branch branch_true = generate_simple_branch(true, branch_input_id, data_types::f32);
condition::branch branch_false = generate_simple_branch(false, branch_input_id, data_types::f32);

topology.add(reorder(reorder_id, input_info(predicate_input), { {d1, -1, -1, d2}, data_types::f32, format::bfyx }));
topology.add(condition(condition_id, { reorder_id, tranpose }, branch_true, branch_false));
topology.add(condition(condition_id, { input_info(predicate_input), tranpose }, branch_true, branch_false));

tests::random_generator rg(GET_SUITE_NAME);
std::vector<uint8_t> predicate_data_true = { 1 };
Expand Down

0 comments on commit da66211

Please sign in to comment.