From da0747118230aa8a5f0d73084c1d2c2f8f127bd8 Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Tue, 27 Jan 2026 11:13:27 +0530 Subject: onednn : upgrade 3.5.3 -> 3.10.2 License Update: - Copyright year updates (2023 -> 2025) for Intel, Arm, Codeplay, and FUJITSU - License file paths updated due to upstream reorganization: * tests/gtests/gtest/LICENSE -> third_party/gtest/LICENSE * src/cpu/x64/xbyak/COPYRIGHT -> third_party/xbyak/COPYRIGHT * src/common/ittnotify/LICENSE.BSD -> third_party/ittnotify/LICENSE.BSD Release Notes: https://github.com/uxlfoundation/oneDNN/releases/tag/v3.10.2 Signed-off-by: Yogesh Tyagi --- .../clang-layer/recipes-core/dnn/onednn_3.10.2.bb | 57 ++++++++++++++++++++++ .../clang-layer/recipes-core/dnn/onednn_3.5.3.bb | 57 ---------------------- .../linux-npu-driver/linux-npu-driver_1.23.0.bb | 45 ----------------- .../linux-npu-driver/linux-npu-driver_1.28.0.bb | 45 +++++++++++++++++ 4 files changed, 102 insertions(+), 102 deletions(-) create mode 100644 dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.10.2.bb delete mode 100644 dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb delete mode 100644 dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.23.0.bb create mode 100644 dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.10.2.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.10.2.bb new file mode 100644 index 00000000..21205c8c --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.10.2.bb @@ -0,0 +1,57 @@ +HOMEPAGE = "https://www.oneapi.com" +SUMMARY = "Deep Neural Network Library" +DESCRIPTION = "This software is a user mode library that accelerates\ +deep-learning applications and frameworks on Intel architecture." +LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=05fda7e0b3a0fe6749e8443316fc9a3f \ + file://third_party/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ + file://third_party/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ + file://third_party/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ + " +SECTION = "lib" + +inherit pkgconfig cmake ptest + +DNN_BRANCH = "rls-v${@'.'.join(d.getVar('PV').split('.')[0:2])}" + +SRCREV = "f1d471933dc852f956fd05389f9313c7148783d5" +SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=${DNN_BRANCH};protocol=https \ + file://run-ptest \ + " + +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P(\d+(\.\d+)+))$" + +CVE_PRODUCT = "intel:math_kernel_library" + +COMPATIBLE_HOST = '(x86_64).*-linux' +COMPATIBLE_HOST:libc-musl = 'null' + +EXTRA_OECMAKE += " \ + -DDNNL_LIBRARY_TYPE=SHARED \ + -DDNNL_BUILD_EXAMPLES=ON \ + -DDNNL_BUILD_TESTS=ON \ + -DDNNL_CPU_RUNTIME=OMP \ + -DDNNL_ARCH_OPT_FLAGS="" \ + -DCMAKE_SKIP_RPATH=ON \ + -DONEDNN_BUILD_GRAPH=OFF \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ + " + +PACKAGECONFIG ??= "gpu" +PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, ${OPENCL_BACKENDS}" + +do_install:append () { + install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs + install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn + cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs +} + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests +} + +PACKAGES =+ "${PN}-test" + +FILES:${PN}-test = "${bindir}/mkl-dnn/*" diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb deleted file mode 100644 index 3128d36e..00000000 --- a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb +++ /dev/null @@ -1,57 +0,0 @@ -HOMEPAGE = "https://www.oneapi.com" -SUMMARY = "Deep Neural Network Library" -DESCRIPTION = "This software is a user mode library that accelerates\ -deep-learning applications and frameworks on Intel architecture." -LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=3b64000f6e7d52516017622a37a94ce9 \ - file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ - file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ - file://src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ - " -SECTION = "lib" - -inherit pkgconfig cmake ptest - -DNN_BRANCH = "rls-v${@'.'.join(d.getVar('PV').split('.')[0:2])}" - -SRCREV = "66f0cb9eb66affd2da3bf5f8d897376f04aae6af" -SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=${DNN_BRANCH};protocol=https \ - file://run-ptest \ - " - -UPSTREAM_CHECK_GITTAGREGEX = "^v(?P(\d+(\.\d+)+))$" - -CVE_PRODUCT = "intel:math_kernel_library" - -COMPATIBLE_HOST = '(x86_64).*-linux' -COMPATIBLE_HOST:libc-musl = 'null' - -EXTRA_OECMAKE += " \ - -DDNNL_LIBRARY_TYPE=SHARED \ - -DDNNL_BUILD_EXAMPLES=ON \ - -DDNNL_BUILD_TESTS=ON \ - -DDNNL_CPU_RUNTIME=OMP \ - -DDNNL_ARCH_OPT_FLAGS="" \ - -DCMAKE_SKIP_RPATH=ON \ - -DONEDNN_BUILD_GRAPH=OFF \ - -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ - " - -PACKAGECONFIG ??= "gpu" -PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/libopencl1, ${OPENCL_BACKENDS}" - -do_install:append () { - install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs - install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn - cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs -} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests - install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests -} - -PACKAGES =+ "${PN}-test" - -FILES:${PN}-test = "${bindir}/mkl-dnn/*" diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.23.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.23.0.bb deleted file mode 100644 index 96ef9f9a..00000000 --- a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.23.0.bb +++ /dev/null @@ -1,45 +0,0 @@ -SUMMARY = "User Mode Driver for IntelĀ® NPU device" -HOMEPAGE = "https://github.com/intel/linux-npu-driver" -LICENSE = "MIT & Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=7b256470048be42466f7d10e1d6482e6 \ - file://third-party-programs.txt;md5=0ae40d7f1ef3bbd509197e427fdd7e70 \ - file://third_party/vpux_elf/LICENSE;md5=5f51ea09f42b161b3013558e48d0fb20 \ - " - -SRC_URI = "git://github.com/intel/linux-npu-driver.git;protocol=https;name=linux-npu-driver;branch=main;lfs=1 \ - git://github.com/openvinotoolkit/npu_plugin_elf.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/vpux_elf;name=vpux-elf;nobranch=1 \ - git://github.com/jbeder/yaml-cpp.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/yaml-cpp;name=yaml-cpp;nobranch=1 \ - git://github.com/intel/level-zero-npu-extensions.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/level-zero-npu-extensions;name=lzvext;nobranch=1 \ - git://github.com/google/googletest.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/googletest;name=googletest;nobranch=1 \ - file://0001-linux-npu-driver-fix-multilib-install-issue.patch \ - " - -SRCREV_linux-npu-driver = "59845101f5445e66dcc691f4f8be6371700fbdf5" -SRCREV_vpux-elf = "4b0a4a06ae09c0c3a973f8f18761c549ec2309eb" -SRCREV_yaml-cpp = "f7320141120f720aecc4c32be25586e7da9eb978" -SRCREV_lzvext = "8cf113bd4a4568f6555d81f316504d7ac3b82ee8" -SRCREV_googletest = "b514bdc898e2951020cbdca1304b75f5950d1f59" -SRCREV_FORMAT = "linux-npu-driver_vpux-elf_yaml-cpp_lzvext_googletest" - -inherit cmake - - -# Fix warning _FORTIFY_SOURCE requires compiling with optimization (-O) -EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release " -EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS_RELEASE=-O2 " - -EXTRA_OECMAKE += " -DCMAKE_INSTALL_FIRMWARE_DIR=${nonarch_base_libdir}" -EXTRA_OECMAKE += " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" -EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS='-I${STAGING_INCDIR}/level_zero'" - -DEPENDS = "level-zero dpkg-native pkgconfig-native level-zero-native" - -PACKAGES =+ "${PN}-firmware ${PN}-tests" - -FILES:${PN}-firmware = "${nonarch_base_libdir}/firmware/updates/intel/vpu/*" -FILES:${PN}-tests = "${bindir}" - -INSANE_SKIP:${PN} += "buildpaths" -INSANE_SKIP:${PN}-dbg += "buildpaths" -INSANE_SKIP:${PN}-tests += "buildpaths" -INSANE_SKIP:${PN}-firmware += "buildpaths" diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb new file mode 100644 index 00000000..d2e90e79 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-bsp/linux-npu-driver/linux-npu-driver_1.28.0.bb @@ -0,0 +1,45 @@ +SUMMARY = "User Mode Driver for IntelĀ® NPU device" +HOMEPAGE = "https://github.com/intel/linux-npu-driver" +LICENSE = "MIT & Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=7b256470048be42466f7d10e1d6482e6 \ + file://third-party-programs.txt;md5=0ae40d7f1ef3bbd509197e427fdd7e70 \ + file://third_party/npu_compiler_elf/LICENSE;md5=5f51ea09f42b161b3013558e48d0fb20 \ + " + +SRC_URI = "git://github.com/intel/linux-npu-driver.git;protocol=https;name=linux-npu-driver;branch=main;lfs=1 \ + git://github.com/openvinotoolkit/npu_plugin_elf.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/npu_compiler_elf;name=npu-compiler-elf;nobranch=1 \ + git://github.com/jbeder/yaml-cpp.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/yaml-cpp;name=yaml-cpp;nobranch=1 \ + git://github.com/intel/level-zero-npu-extensions.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/level-zero-npu-extensions;name=lzvext;nobranch=1 \ + git://github.com/google/googletest.git;protocol=https;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/third_party/googletest;name=googletest;nobranch=1 \ + file://0001-linux-npu-driver-fix-multilib-install-issue.patch \ + " + +SRCREV_linux-npu-driver = "33ea2184a5df52e103bb88d97e99fc908a4c6a30" +SRCREV_npu-compiler-elf = "9d91134722e70bf52297adaeb221a0be8e408b14" +SRCREV_yaml-cpp = "f7320141120f720aecc4c32be25586e7da9eb978" +SRCREV_lzvext = "61e4aeb00afd2a5b6955986269eed3a713c7b562" +SRCREV_googletest = "b514bdc898e2951020cbdca1304b75f5950d1f59" +SRCREV_FORMAT = "linux-npu-driver_npu-compiler-elf_yaml-cpp_lzvext_googletest" + +inherit cmake + + +# Fix warning _FORTIFY_SOURCE requires compiling with optimization (-O) +EXTRA_OECMAKE += " -DCMAKE_BUILD_TYPE=Release " +EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS_RELEASE=-O2 " + +EXTRA_OECMAKE += " -DCMAKE_INSTALL_FIRMWARE_DIR=${nonarch_base_libdir}" +EXTRA_OECMAKE += " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" +EXTRA_OECMAKE += " -DCMAKE_CXX_FLAGS='-I${STAGING_INCDIR}/level_zero'" + +DEPENDS = "level-zero dpkg-native pkgconfig-native level-zero-native" + +PACKAGES =+ "${PN}-firmware ${PN}-tests" + +FILES:${PN}-firmware = "${nonarch_base_libdir}/firmware/updates/intel/vpu/*" +FILES:${PN}-tests = "${bindir}" + +INSANE_SKIP:${PN} += "buildpaths" +INSANE_SKIP:${PN}-dbg += "buildpaths" +INSANE_SKIP:${PN}-tests += "buildpaths" +INSANE_SKIP:${PN}-firmware += "buildpaths" -- cgit v1.2.3-54-g00ecf