OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] Disable transfer of usm_host memory to usm_device for LNL (#31600)
Roman Lyamin0c9634824894
diff --git a/src/plugins/intel_gpu/src/graph/network.cpp b/src/plugins/intel_gpu/src/graph/network.cppindex 6219a839294..e5198595492 100644--- a/src/plugins/intel_gpu/src/graph/network.cpp+++ b/src/plugins/intel_gpu/src/graph/network.cpp@@ -1011,6 +1011,12 @@ void network::transfer_memory_to_device(std::shared_ptr<primitive_inst> instancereturn;if (alloc_type == allocation_type::usm_host || alloc_type == allocation_type::usm_shared) {+ // usm_device memory does not provide performance benefits on the LNL platform+ if (get_engine().get_device_info().arch == gpu_arch::xe2 &&+ get_engine().get_device_info().dev_type == device_type::integrated_gpu) {+ return;+ }+// Allocate and transfer memoryauto device_mem = inst_mem.get_engine()->allocate_memory(inst_mem.get_layout(), allocation_type::usm_device, false);device_mem->copy_from(get_stream(), inst_mem);diff --git a/src/plugins/intel_gpu/src/graph/program.cpp b/src/plugins/intel_gpu/src/graph/program.cppindex d16158272b1..ad4a290fc28 100644--- a/src/plugins/intel_gpu/src/graph/program.cpp+++ b/src/plugins/intel_gpu/src/graph/program.cpp@@ -687,6 +687,12 @@ void program::transfer_memory_to_device() {}if (alloc_type == allocation_type::usm_host || alloc_type == allocation_type::usm_shared) {+ // usm_device memory does not provide performance benefits on the LNL platform+ if (get_engine().get_device_info().arch == gpu_arch::xe2 &&+ get_engine().get_device_info().dev_type == device_type::integrated_gpu) {+ return;+ }+GPU_DEBUG_LOG << "[" << data_node.id() << ": constant]" << std::endl;// Allocate and transfer memoryauto device_mem = mem.get_engine()->allocate_memory(data_node_layout, allocation_type::usm_device, false);