Skip to content

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

[GPU] Disable `INNER_PRODUCT` primitive and `XEHPC` ISA from oneDNN (#36447)

Aleksandr Voronb7d9ce6e9110
diff --git a/src/plugins/intel_gpu/include/intel_gpu/plugin/common_utils.hpp b/src/plugins/intel_gpu/include/intel_gpu/plugin/common_utils.hpp
index a5f1d9e3379..c6eed969959 100644
--- a/src/plugins/intel_gpu/include/intel_gpu/plugin/common_utils.hpp
+++ b/src/plugins/intel_gpu/include/intel_gpu/plugin/common_utils.hpp
@@ -43,10 +43,9 @@ inline bool can_use_usm_host(cldnn::engine& engine, const uint64_t total_output_
const uint64_t LARGE_OUTPUT_BYTES_THRESHOLD = 4 * 1048576;
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) ||
+ if ((device_info.gfx_ver.major >= 20 && device_info.dev_type == cldnn::device_type::discrete_gpu) ||
(device_info.dev_type == cldnn::device_type::discrete_gpu && total_output_bytes > LARGE_OUTPUT_BYTES_THRESHOLD)) {
- // WA: Disable USM host memory for infer request`s tensors for PVC and subsequent dGPUs, as kernel access
+ // WA: Disable USM host memory for infer request`s tensors for 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;
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gated_delta_net_ref.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gated_delta_net_ref.cpp
index 237039c4d5b..9df7ae8322f 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gated_delta_net_ref.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gated_delta_net_ref.cpp
@@ -21,7 +21,6 @@ size_t get_subgroup_size(gpu_arch arch) {
case gpu_arch::xe_hp:
case gpu_arch::xe_hpg:
return 8;
- case gpu_arch::xe_hpc:
case gpu_arch::xe2:
case gpu_arch::xe3:
default:
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gather_matmul_gen_micro.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gather_matmul_gen_micro.cpp
index 8fc07afc082..aa548a0d176 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gather_matmul_gen_micro.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gather_matmul_gen_micro.cpp
@@ -38,7 +38,6 @@ static size_t get_subgroup_size(gpu_arch arch) {
case gpu_arch::xe_hp:
case gpu_arch::xe_hpg:
return 8;
- case gpu_arch::xe_hpc:
case gpu_arch::xe2:
case gpu_arch::xe3:
return 16;
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gathermatmul_batched_gemm_gen.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gathermatmul_batched_gemm_gen.cpp
index 6113615e6cc..a0e89c9c8ee 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gathermatmul_batched_gemm_gen.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/gather_matmul/gathermatmul_batched_gemm_gen.cpp
@@ -31,7 +31,6 @@ static size_t get_subgroup_size(gpu_arch arch) {
case gpu_arch::xe_hp:
case gpu_arch::xe_hpg:
return 8;
- case gpu_arch::xe_hpc:
case gpu_arch::xe2:
case gpu_arch::xe3:
return 16;
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_3gemm_gen_micro.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_3gemm_gen_micro.cpp
index 4cd35dba9d4..53dfb4d525a 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_3gemm_gen_micro.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_3gemm_gen_micro.cpp
@@ -24,7 +24,6 @@ static size_t get_subgroup_size(gpu_arch arch) {
case gpu_arch::xe_hp:
case gpu_arch::xe_hpg:
return 8;
- case gpu_arch::xe_hpc:
case gpu_arch::xe2:
case gpu_arch::xe3:
return 16;
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_gated_delta_net.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_gated_delta_net.cpp
index a7f3d4f7e1f..efbb8c5671a 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_gated_delta_net.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_gated_delta_net.cpp
@@ -26,7 +26,6 @@ size_t get_subgroup_size(gpu_arch arch) {
case gpu_arch::xe_hp:
case gpu_arch::xe_hpg:
return 8;
- case gpu_arch::xe_hpc:
case gpu_arch::xe2:
case gpu_arch::xe3:
default:
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_gen_micro.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_gen_micro.cpp
index 11ab17d05de..60afc1f6138 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_gen_micro.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_gen_micro.cpp
@@ -1526,9 +1526,6 @@ void SDPAMicroGenerator::init_microkernels(const kernel_impl_params& params,
config = choose_config_xehpg(static_cast<int32_t>(k_head_size), nkeys_v, thin_q, is_quantized, is_paged_attention, is_prefill);
break;
}
- case gpu_arch::xe_hpc:
- config = choose_config_xehpc(static_cast<int32_t>(k_head_size), nkeys_v, thin_q, is_quantized, is_integrated, is_paged_attention, is_prefill);
- break;
case gpu_arch::xe2:
case gpu_arch::xe3:
config = choose_config_xe2(static_cast<int32_t>(k_head_size), nkeys_v, thin_q, is_quantized, is_integrated, is_paged_attention, is_prefill);
diff --git a/src/plugins/intel_gpu/src/runtime/device.cpp b/src/plugins/intel_gpu/src/runtime/device.cpp
index 046f5b5f97c..d6bc93a3629 100644
--- a/src/plugins/intel_gpu/src/runtime/device.cpp
+++ b/src/plugins/intel_gpu/src/runtime/device.cpp
@@ -101,8 +101,6 @@ const std::vector<DeviceOps> device_ops_table = {
{ { {12, 0, 0}, {12, 9, MAX_REVISION} }, { 0, 16, 32, 0, 0, 64 }, {} }, // TGL, RKL, ADL
{ { {12, 10, 0} }, { 0, 16, 32, 0, 0, 64 }, {} }, // DG1
{ { {12, 55, 0}, {12, 57, MAX_REVISION} }, { 0, 16, 32, 128, 256, 0 }, {} }, // DG2
- { { {12, 60, 0}, {12, 60, 1} }, { 16, 32, 64, 512, 1024, 0 }, {} }, // PVC_XL
- { { {12, 60, 3}, {12, 61, 7} }, { 32, 32, 64, 512, 1024, 0 }, {} }, // PVC_XT
{ { {12, 70, 0}, {12, 71, MAX_REVISION} }, { 0.5, 16, 32, 0, 0, 64 }, {} }, // MTL/ARL-S
{ { {12, 74, 0}, {12, 74, MAX_REVISION} }, { 0.5, 16, 32, 128, 256, 0 }, {} }, // ARL-H
{ { {20, 1, 0}, {20, 2, MAX_REVISION} }, { 1, 16, 32, 128, 256, 0 }, {} }, // BMG
diff --git a/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp b/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp
index cf7664cd5f5..ff37b3ab54c 100644
--- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp
@@ -60,7 +60,7 @@ gpu_arch convert_ngen_arch(ngen::HW gpu_arch) {
case ngen::HW::XeLP: return gpu_arch::xe_lp;
case ngen::HW::XeHP: return gpu_arch::xe_hp;
case ngen::HW::XeHPG: return gpu_arch::xe_hpg;
- case ngen::HW::XeHPC: return gpu_arch::xe_hpc;
+ case ngen::HW::XeHPC: OPENVINO_THROW("[GPU] XeHPC is not supported");
case ngen::HW::Xe2: return gpu_arch::xe2;
case ngen::HW::Xe3: return gpu_arch::xe3;
case ngen::HW::Xe3p: return gpu_arch::xe3p;
diff --git a/src/plugins/intel_gpu/src/runtime/sycl/sycl_device.cpp b/src/plugins/intel_gpu/src/runtime/sycl/sycl_device.cpp
index 91eaac10ba0..945e815e105 100644
--- a/src/plugins/intel_gpu/src/runtime/sycl/sycl_device.cpp
+++ b/src/plugins/intel_gpu/src/runtime/sycl/sycl_device.cpp
@@ -64,7 +64,7 @@ gpu_arch convert_ngen_arch(ngen::HW gpu_arch) {
case ngen::HW::XeLP: return gpu_arch::xe_lp;
case ngen::HW::XeHP: return gpu_arch::xe_hp;
case ngen::HW::XeHPG: return gpu_arch::xe_hpg;
- case ngen::HW::XeHPC: return gpu_arch::xe_hpc;
+ case ngen::HW::XeHPC: OPENVINO_THROW("[GPU] XeHPC is not supported");
case ngen::HW::Xe2: return gpu_arch::xe2;
case ngen::HW::Xe3: return gpu_arch::xe3;
case ngen::HW::Xe3p: return gpu_arch::xe3p;
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp b/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
index 0802032675b..c400ac8f254 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_device.cpp
@@ -44,7 +44,7 @@ gpu_arch convert_ngen_arch(ngen::HW gpu_arch) {
case ngen::HW::XeLP: return gpu_arch::xe_lp;
case ngen::HW::XeHP: return gpu_arch::xe_hp;
case ngen::HW::XeHPG: return gpu_arch::xe_hpg;
- case ngen::HW::XeHPC: return gpu_arch::xe_hpc;
+ case ngen::HW::XeHPC: OPENVINO_THROW("[GPU] XeHPC is not supported");
case ngen::HW::Xe2: return gpu_arch::xe2;
case ngen::HW::Xe3: return gpu_arch::xe3;
case ngen::HW::Xe3p: return gpu_arch::xe3p;
diff --git a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
index a614a5d8639..48843e91246 100644
--- a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
+++ b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt
@@ -14,8 +14,8 @@ if(ENABLE_ONEDNN_FOR_GPU)
set(ONEDNN_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_build")
set(ONEDNN_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_install" CACHE PATH "Installation path for oneDNN GPU library")
set(ONEDNN_PREFIX_DIR "${CMAKE_CURRENT_BINARY_DIR}/onednn_gpu_root")
- set(ONEDNN_ENABLED_PRIMITIVES "CONCAT;CONVOLUTION;DECONVOLUTION;GATED_MLP;INNER_PRODUCT;MATMUL;REORDER;POOLING;REDUCTION;SDPA;RNN")
- set(ONEDNN_ENABLED_ISA "ALL")
+ set(ONEDNN_ENABLED_PRIMITIVES "CONCAT;CONVOLUTION;DECONVOLUTION;GATED_MLP;MATMUL;REORDER;POOLING;REDUCTION;SDPA;RNN")
+ set(ONEDNN_ENABLED_ISA "XELP;XEHP;XEHPG;XE2;XE3;XE3P")
set(DNNL_GPU_LIBRARY_NAME "openvino_onednn_gpu" CACHE STRING "Name of oneDNN library for Intel GPU Plugin")
if(X86_64)