Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] Adjust usm_host memory usage for InferRequest tensors (#26896)

Sergey Shlyapnikov0ae368396a5c
diff --git a/src/plugins/intel_gpu/src/plugin/sync_infer_request.cpp b/src/plugins/intel_gpu/src/plugin/sync_infer_request.cpp
index 346b4471779..88d69dcd3e4 100644
--- a/src/plugins/intel_gpu/src/plugin/sync_infer_request.cpp
+++ b/src/plugins/intel_gpu/src/plugin/sync_infer_request.cpp
@@ -34,9 +34,12 @@ namespace {
inline bool can_use_usm_host(const cldnn::engine& engine) {
auto can_use_usm = engine.use_unified_shared_memory();
- if (engine.get_device_info().gfx_ver.major == 12 && engine.get_device_info().gfx_ver.minor == 60) {
- // WA: Disable USM host memory for infer request`s tensors for PVC as
- // it has performance issues in case of host <-> device data transfers inside kernels
+ const auto& device_info = engine.get_device_info();
+ if ((device_info.gfx_ver.major == 12 && device_info.gfx_ver.minor == 60) ||
+ (device_info.gfx_ver.major >= 20 && device_info.dev_type == cldnn::device_type::discrete_gpu)) {
+ // WA: Disable USM host memory for infer request`s tensors for PVC and subsequent dGPUs, as kernel access
+ // to system memory is slower than using an explicit memcpy (Host <-> Device) call with the copy engine
+ // Driver tickets with additional details: 6155, 10054
GPU_DEBUG_TRACE << "Do not use usm_host for performance issue" << std::endl;
can_use_usm = false;
}