From e033e5a812e33b4d5f10d30e206149508e57716c Mon Sep 17 00:00:00 2001 From: "Kim, SungEun" Date: Wed, 3 Dec 2025 16:01:44 +0900 Subject: [PATCH 1/2] build with onednn prv-gpu branch --- src/plugins/intel_gpu/thirdparty/CMakeLists.txt | 6 ++++-- src/plugins/intel_gpu/thirdparty/onednn_gpu | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt index b9a904a03f6271..dfe88881791bfd 100644 --- a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt +++ b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt @@ -15,7 +15,7 @@ if(ENABLE_ONEDNN_FOR_GPU) 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;INNER_PRODUCT;MATMUL;REORDER;POOLING;REDUCTION;SDPA;RNN") - set(ONEDNN_ENABLED_ISA "XELP;XEHP;XEHPG;XEHPC;XE2;XE3") + set(ONEDNN_ENABLED_ISA "XELP;XEHP;XEHPG;XEHPC;XE2;XE3;XE3P;XE4") set(DNNL_GPU_LIBRARY_NAME "openvino_onednn_gpu" CACHE STRING "Name of oneDNN library for Intel GPU Plugin") if(X86_64) @@ -168,7 +168,9 @@ if(ENABLE_ONEDNN_FOR_GPU) DNNL_ENABLE_CPU_ISA_HINTS DNNL_ENABLE_MAX_CPU_ISA DNNL_X64=1 - NGEN_CONFIG) + NGEN_CONFIG + XE3P + XE4) add_library(onednn_gpu_tgt INTERFACE) set_target_properties(onednn_gpu_tgt PROPERTIES INTERFACE_LINK_LIBRARIES $ diff --git a/src/plugins/intel_gpu/thirdparty/onednn_gpu b/src/plugins/intel_gpu/thirdparty/onednn_gpu index 29d64fe0ec0f1f..5845409749076d 160000 --- a/src/plugins/intel_gpu/thirdparty/onednn_gpu +++ b/src/plugins/intel_gpu/thirdparty/onednn_gpu @@ -1 +1 @@ -Subproject commit 29d64fe0ec0f1f20d7f80aa76630d58a6011a869 +Subproject commit 5845409749076dd5c760fd2b9c1b0053829b318d From b281800c42247c4396636306bbe858e44a7747c5 Mon Sep 17 00:00:00 2001 From: "Kim, SungEun" Date: Wed, 3 Dec 2025 17:52:09 +0900 Subject: [PATCH 2/2] changes from https://github.com/intel-sandbox/frameworks.ai.openvino.gpu.embargo_support/pull/64 --- .gitmodules | 2 +- .../intel_gpu/include/intel_gpu/runtime/device_info.hpp | 4 ++++ .../intel_gpu/src/kernel_selector/kernel_selector_params.h | 4 ++++ src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp | 4 ++++ src/plugins/intel_gpu/thirdparty/CMakeLists.txt | 1 + 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index d9733bc0d844c1..01a4f857ef8326 100644 --- a/.gitmodules +++ b/.gitmodules @@ -51,7 +51,7 @@ url = https://github.com/nithinn/ncc.git [submodule "thirdparty/onednn_gpu"] path = src/plugins/intel_gpu/thirdparty/onednn_gpu - url = https://github.com/oneapi-src/oneDNN.git + url = https://github.com/intel-innersource/libraries.performance.math.onednn.git [submodule "thirdparty/json/nlohmann_json"] path = thirdparty/json/nlohmann_json url = https://github.com/nlohmann/json.git diff --git a/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp b/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp index 416a72c1a527aa..c781965ab89461 100644 --- a/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp +++ b/src/plugins/intel_gpu/include/intel_gpu/runtime/device_info.hpp @@ -34,6 +34,10 @@ enum class gpu_arch { xe_hpc = 6, xe2 = 7, xe3 = 8, + xe3p_35_10 = 9, + xe3p_35_11 = 10, + xe3p_unknown = 11, + xe4 = 12, }; /// @brief Defines version of GFX IP diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernel_selector_params.h b/src/plugins/intel_gpu/src/kernel_selector/kernel_selector_params.h index 8da70f59248ed0..1fe30aa1d46297 100644 --- a/src/plugins/intel_gpu/src/kernel_selector/kernel_selector_params.h +++ b/src/plugins/intel_gpu/src/kernel_selector/kernel_selector_params.h @@ -366,6 +366,10 @@ enum class gpu_arch { xe_hpc = 6, xe2 = 7, xe3 = 8, + xe3p_35_10 = 9, + xe3p_35_11 = 10, + xe3p_unknown = 11, + xe4 = 12, }; 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 ca0193f85e1d3c..62d69ba5b8a084 100644 --- a/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp +++ b/src/plugins/intel_gpu/src/runtime/ocl/ocl_device.cpp @@ -62,6 +62,10 @@ gpu_arch convert_ngen_arch(ngen::HW gpu_arch) { case ngen::HW::XeHPC: return gpu_arch::xe_hpc; case ngen::HW::Xe2: return gpu_arch::xe2; case ngen::HW::Xe3: return gpu_arch::xe3; + case ngen::HW::XE3P_35_10: return gpu_arch::xe3p_35_10; + case ngen::HW::XE3P_35_11: return gpu_arch::xe3p_35_11; + case ngen::HW::XE3P_UNKNOWN: return gpu_arch::xe3p_unknown; + case ngen::HW::Xe4: return gpu_arch::xe4; case ngen::HW::Gen10: case ngen::HW::Unknown: return gpu_arch::unknown; } diff --git a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt index dfe88881791bfd..0f4033ee283c41 100644 --- a/src/plugins/intel_gpu/thirdparty/CMakeLists.txt +++ b/src/plugins/intel_gpu/thirdparty/CMakeLists.txt @@ -169,6 +169,7 @@ if(ENABLE_ONEDNN_FOR_GPU) DNNL_ENABLE_MAX_CPU_ISA DNNL_X64=1 NGEN_CONFIG + NGEN_NO_OP_NAMES XE3P XE4) add_library(onednn_gpu_tgt INTERFACE)