Skip to content

Commit 3085215

Browse files
authored
[GPU] Fix perf regression due to PR #27653 (#27899)
### Details: - *Remove unecessary memory copy.* - *Tests already exists.* ### Tickets: - *158009*
1 parent 4bfa714 commit 3085215

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/plugins/intel_gpu/src/plugin/sync_infer_request.cpp

-15
Original file line numberDiff line numberDiff line change
@@ -465,21 +465,6 @@ void SyncInferRequest::wait() {
465465
iremote_tensor_ptr->copy_from(plugin_tensor.ptr);
466466
}
467467
}
468-
} else if (!is_dynamic && is_remote_tensor_impl && output_memory) {
469-
auto& stream = m_graph->get_network()->get_stream();
470-
auto user_mem = remote_tensor_impl_ptr->get_original_memory();
471-
if (user_mem->get_allocation_type() == cldnn::allocation_type::cl_mem
472-
&& output_memory->get_allocation_type() != cldnn::allocation_type::cl_mem) {
473-
auto plugin_tensor = m_plugin_outputs.at(port_idx);
474-
if (is_convert_required(plugin_tensor.ptr->get_element_type(), iremote_tensor_ptr->get_element_type())) {
475-
auto& stream = m_graph->get_network()->get_stream();
476-
convert_and_copy(plugin_tensor.ptr.get(), iremote_tensor_ptr.get(), stream);
477-
} else {
478-
iremote_tensor_ptr->copy_from(plugin_tensor.ptr);
479-
}
480-
} else {
481-
copy_events.push_back(output_memory->copy_to(stream, *user_mem, false));
482-
}
483468
} else if (is_remote_tensor_impl && is_dynamic) {
484469
auto& stream = m_graph->get_network()->get_stream();
485470
auto user_mem = remote_tensor_impl_ptr->get_original_memory();

0 commit comments

Comments
 (0)