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] Change tensor type fallback from usm_host to usm_device (#36713)
Jakub Kasprzak093b688ab10d
diff --git a/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp b/src/plugins/intel_gpu/src/plugin/remote_tensor.cppindex f9efbd47b5c..795b9d6fc84 100644--- a/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp+++ b/src/plugins/intel_gpu/src/plugin/remote_tensor.cpp@@ -324,10 +324,10 @@ void RemoteTensorImpl::allocate() {} else if (engine.supports_allocation(cldnn::allocation_type::sycl_buffer)) {m_memory_object = engine.allocate_memory(m_layout, cldnn::allocation_type::sycl_buffer, reset);} else {- // Fall back to usm_host and override memory type- GPU_DEBUG_INFO << "[Warning] [GPU] Could not allocate cl_mem, using usm_host allocation instead\n";- m_mem_type = TensorType::BT_USM_HOST_INTERNAL;- m_memory_object = engine.allocate_memory(m_layout, cldnn::allocation_type::usm_host, reset);+ // Fall back to usm_device and override memory type+ GPU_DEBUG_INFO << "[Warning] [GPU] Could not allocate cl_mem, using usm_device allocation instead\n";+ m_mem_type = TensorType::BT_USM_DEVICE_INTERNAL;+ m_memory_object = engine.allocate_memory(m_layout, cldnn::allocation_type::usm_device, reset);}break;}